Reduce submit-time refresh work and reuse in-flight write ranges #3958
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3958"
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 vilaris on 2026-11-30T13:01:46Z.
Changes
VICTORY_SUBMIT_DIRTY_PAGES=0to use the previous selection path.Before and after
Windows gameplay logs for the previous local implementation and the retained single-page copy implementation. Both runs used 2x frame generation.
Source logs:
victory-nvidia-play-20261130-125651-13072.logvictory-nvidia-play-20261130-130158-17296.logPreparing, refresh and copied volume use reporting windows with 9,000 to 11,000 candidates (94 before, 55 after). Slow-frame counts pool the final 30 frame-time windows of each capture. The retained implementation copied about 11% fewer bytes in these windows. These are separate gameplay captures from local builds, so scene load may explain part of the difference.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Zeyphers on 2026-11-30T20:20:08Z.
Merged onto main
84bd61e2and benched on an RTX 2080 Super 8 GB and Ryzen 7 5800X (Series S, DLSS Quality, standing scene, 180 s): 9.8 fps median vs 9.2–9.7 baseline, so no measurable change on this CPU-bound rig. Two baseline runs differed by about 0.5 fps, so that's the noise. Only one run per PR, in a standing scene, not a walk.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nicolasabosch on 2026-11-30T21:52:17Z.
Tested on an RTX 4070 Laptop 8 GB: no measurable fps difference in this scene (2 runs).
Tested on main
e1251c31with this PR (3c30b4c9) merged on top and nothing else changed. Release build, same profile as main.Setup
victory play --series-s --dlss performance --framegen 2, with no fps cap and the window minimized.host:reports, about 200 s. These are real frames, not generated ones.On this laptop, identical main runs differ by up to about 2–2.5 fps, so only an effect of roughly 2–3 fps or more would be visible in this scene. Refresh time on the submit thread was 15.4 and 16.3 ms with this PR, against 13.3–15.4 ms on main, so it did not come down in this scene. The first run also translated every shader again: the PR edits a file under
crates/victory-shader/src, which changes the translator fingerprint.Not tested: driving, camera turns, interiors, an image comparison, other GPUs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by korbannour578-alt on 2026-12-01T12:05:49Z.
Test result on an RTX 4060 Laptop 8 GB (i7-13620H 6P+4E, 32 GB RAM, NVIDIA 610.78), Series S profile, build
5fabb46e+ the warpGTAIV/VIctory-8GB small-card policy.I applied #4757 and #3958 together (one build, so I can't split the effect between them), with COPIES_FILLS_FAST, WATCH_FAST_JOURNAL, SUBMIT_SPLIT=1 and OFF_LINE=1 set.
So on this laptop it was a regression and I reverted it. Happy to test one PR at a time if that helps narrow it down.
Full laptop report: #4867
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tillo88 on 2026-12-01T12:06:57Z.
Replay bench: #3958 (head
3c30b4c9, its defaults, soVICTORY_SUBMIT_DIRTY_PAGESon) merged on top of v2026.11.30.03, 2 measured runs, against 18 runs of the same release without it.7575 of them known to copy nothing (7575 by page selection), a line the base runs don't have.Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up run not counted.
Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:47:31Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed