Refreshes inside a recorded run left out (VICTORY_REFRESH_WITHIN), and the one asking's gap 2 MiB (VICTORY_ONCE_GAP_KB) #4878
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4878
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4877"
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?
@Kenzim on GitHub · 2026-12-01 12:29 UTC · original
Kenzim:refresh→main· +127 −1 · 2 files · 1 commits · closed without mergingTwo changes to what the submitting thread does before its refreshes.
VICTORY_REFRESH_WITHIN(on). A list leaves out a refresh whose bytes one run of refreshes it recorded since its last title copy already names; a draw's piece of a vertex buffer bound whole earlier, for one.Deferred::refreshed), and the submitting thread walked every step three times.title_written) or a shader write of that copy (defer_gpu_write).ask_once) joins ranges over 2 MiB instead of 8 MiB (AHEAD_GAP).VICTORY_ONCE_GAP_KB=<KiB>sets the gap;VICTORY_AHEAD_GAP_KBstaysask_ahead's.Measurements (RTX 3090, native 2560x1440, DLSS off, street scene, 4,600 draws; switches flipped inside one run with
VICTORY_AB), per frame:In this card-bound scene the frame time does not move (median unchanged). The gains are in the processor stages named above.
Not measured: gaps below 2 MiB; the lists' own threads and list reset; other scenes.
To restore the old behaviour:
VICTORY_REFRESH_WITHIN=0,VICTORY_ONCE_GAP_KB=8192.Shader cache / translator key: not affected.
Tests: new
host::a_refresh_inside_the_run_recorded_is_left_out_and_no_other;watch::69 pass.watch::tests::ask_rest_falls_back_per_piece_when_touching_unwatched_neighbouris an existing parallel-only flake on main (8 of 40 runs fail there; 0 of 20 single-threaded). The rest ofhost::aborts on the test PC (Windows 10, no Shader Model 6.6), as on main.@cloph-dsp on GitHub · 2026-12-01 12:56 UTC · original
Verification of this PR (AI-assisted: Hy4 flash), source only, no game data.
Windows / rustc 1.100.0 / MSVC. Worktree at head
37562c20, dedicated per-worktree CARGO_TARGET_DIR (D:\Victory-Contrib\NVIDIA-Contrib\target-4877), never shared.Negative control on base
5fabb46e:git grep -F a_refresh_inside_the_run_recorded_is_left_out_and_no_other 5fabb46e -- .-> exit 1 (test is new)Whitespace:
git diff --check 5fabb46e..37562c20-> exit 0, clean.->
running 1 test/test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1161 filtered out.Note on the name: unlike its neighbours this
#[test]sits at the crate root of host.rs (line 13924), not insidemod written_spans_tests, so the filter ishost::a_refresh_inside_the_run_recorded_is_left_out_and_no_other. Filtering underhost::written_spans_tests::reportsrunning 0 tests— a false negative, not a failure. It may be worth moving it next toheld_within's companions in that module so the names stay together.GPU/driver: N/A (the test drives
held_withinover a synthetic run set; no device is opened).Verdict: PASS for the new synthetic test on this host.
@tikD1337 on GitHub · 2026-12-01 13:28 UTC · original
Tested stacked on
origin/main(5fabb46e) in--releasealongside#4872,#4885(VICTORY_THIN_PEEPHOLE=1), and#355601/03/04(VICTORY_PORT_CONSTANTS=0,VICTORY_WC_BAR=0):621.1.0, ReBAR ON) + Win1126300, DLSS Quality,105 ssteady 3D runs (0crashes).#4877+#4872:>=200lists):27.41 -> 27.93 FPS(36.48 -> 35.80 ms)submit_prep:32.7 -> 31.6 ms(ww8.10 -> 7.60 ms)5.3k–6.5kdrawshost_prep:30.8 -> 29.4 ms(down to28.9 ms)Clean apply,
watch::tests43/43 PASS, 0 crashes.@trustno1-coder on GitHub · 2026-12-01 18:29 UTC · original
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