Host lists: the present can run on a thread of its own (VICTORY_PRESENT_THREAD, off by default) + RTX 4060 Ti 8 GB findings #2346
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2346"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by jr-duarte on 2026-11-29T12:16:57Z.
What it changes
1.
VICTORY_PRESENT_THREAD=1(new, off by default). With presents sent ahead (late_free_present), the swap chain'sPresentand frame generation's work around it (Streamline markers, tags,present_begins/called/returned/ends, FSR 3'spresentedhook) run on avictory-presentthread instead of the submitting thread.Why: in a CPU profile of the opening cutscene (Ryzen 5 7600X, RTX 4060 Ti 8 GB, DLSS frame generation 2X) a present with frame generation was 13 % of the submitting thread (3,642 of 27,607 samples), 5.5 % of it asleep in the driver, which paces the generated frame. With the thread, the submitting thread prepares the next submission meanwhile.
What stays in order:
streamline::submitted, with FSR's camera whenfsr::ml_active;hudless_submitted), only after that present returned (present_wait+tell_upscalesright before the sending). Told earlier, the present in the air could tag the next frame's upscale.drop_presenterwaits too, so back buffers go round as before.TEARING_REFUSEDand the rest present at the next refresh, as before.VICTORY_SUBMIT_SPLIT, whose sender orders its own sends (logged once).present_waitreturns at once and the upscalings are told where they were.2.
docs/findings.md: what was measured on an RTX 4060 Ti 8 GB (Ryzen 5 7600X, 32 GB), including v2026.11.29.01 against the build before it on that card,VICTORY_CARD_AWAKE(consistent with #771 leaving it off), and switches that did not move the frame there.How it was tested
829188e, one build, switch off / on, runs alternated):About +2 %, inside the noise on this base, which is why it stays off. On v2026.11.28.03 the same change measured 22.0 -> 23.6 fps (+7 %) and the submitting thread 24.1 -> 22.8 ms a frame. Logs confirm the thread was on (
presents and frame generation run on a thread of their own). No crash in any run.cargo test -p victory-gpu --lib: 914 passed, 1 failed (host::card_steps::tests::places_written_after_sending_are_learned), which passed 3 times out of 3 when run alone; it does not touch the present path.cargo clippy -p victory-gpu --all-targets --no-depsreports no warning in the changed code;mainitself does not pass-D warningstoday (35 warnings invictory-gpu, 3 errors invictory-shader).cargo xtask policy(nogiton that machine's PATH); the change is two text files, no binary or long hex/base64.Also seen on this card with v2026.11.29.01 as released (details in the findings section): the first two starts after updating ran at 0.1 and 3.5 fps while shaders were converted; afterwards 21.5 and 22.7 fps with 117 and 200 late textures, against 23.5–24.9 fps and 10–23 late textures for the previous build with this change. Pictures of the cutscene showed green and red streaks on a pair of glasses and purple specks along the edge of a boat that the previous build did not show.
Checked for overlap
VICTORY_PRESENT_QUEUE), a different approach to the same cost; #771 (VICTORY_CARD_AWAKEoff).This change was made with AI assistance (Claude Code in OpenBot) and measured on the hardware above.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Aniseto on 2026-11-29T12:57:31Z.
Ran the full victory-gpu library suite at
471653ceon an NVIDIA Blackwell desktop part.System
rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5Results
VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib -- --test-threads=1: 914 passed, 1 failed, 57 ignored (exit 101).host::packed_present_tests::packed_float_single_planes_are_presented:frame 0 (R8G8B8A8_UNORM) was not presented, athost.rs:15622.What this adds
The same single failure was measured on PR #1988 at the same driver, where it reproduced 3 of 3 times when run alone: https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1988#issuecomment-7255924953 I am reporting the measured outputs, not attributing the cause to either change. The author's run of this PR reports a different single failure (
places_written_after_sending_are_learned); this run did not reproduce that one. No title run was made.Not tested
A retail title, a paired smoke run, the whole workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - ran the commands above on this machine and wrote this report; no game data was used.
Pull request closed