Start the largest CPU texture refresh first in mixed batches (opt-in) #1821

Manually merged
github merged 1 commit from github-bot/gh-1821 into main 2026-11-29 08:20:38 +00:00 AGit
Owner

@⁠NotADonky43 on GitHub · 2026-11-29 00:25 UTC · original
NotADonky43:perf/large-texture-first → main · +34 −0 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC

Fixes #1820. Opt in with VICTORY_LARGE_TEXTURE_FIRST=1 (default unchanged). Within an existing parallel CPU batch that already has both textures and buffers, move only the first maximum-size texture to the front. Preserve relative order for every other task. Size is its potential source read length: not a guarantee the task is expensive. No filtering, rebudgeting, fence, shader or GPU command order changes. No new allocations in the scheduling step.

Windows RTX 5070 Ti, Series X, 1440p DLSS Quality, no FG, estimated lighting. Same optimized A/B exe 4882e6b4 on our d4b5d517-based cumulative; identical warm cache/profile seeds including 25,657 shaders. Ran off/on then on/off. In heavy windows with zero pending pipelines, medians (off vs on):

Pair CPU refresh ms/frame Median of window present p95s (ms) Median of window p99s (ms)
Off first 17.35 / 14.8 68.0 / 57.2 84.1 / 59.2
On first 17.0 / 15.6 65.1 / 63.7 72.0 / 69.0

6–7 reports per run; second effect notably smaller, shots not visually matched. No sustained FPS, reduced total memory, or exact visual parity claim. All four reached their heavy-rendering milestone. New ordering regression passed (empty, ties, preservation of every other job); existing batch tests 5 passed, 1 ignored. Final public source uses a non-local switch name; the experimental A/B used the same selection algorithm.

Checked #1138 and open refresh/scheduling PRs. #1298 targets different parts of this function; #614/#653 address clean checks/locking. Clean source merge onto d4b5d517 verified. Would welcome an independent scene-matched run on a second machine before changing defaults.

**@⁠NotADonky43** on GitHub · 2026-11-29 00:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1821) `NotADonky43:perf/large-texture-first` → `main` · +34 −0 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC Fixes #1820. Opt in with `VICTORY_LARGE_TEXTURE_FIRST=1` (default unchanged). Within an existing parallel CPU batch that already has both textures and buffers, move only the first maximum-size texture to the front. Preserve relative order for every other task. Size is its potential source read length: not a guarantee the task is expensive. No filtering, rebudgeting, fence, shader or GPU command order changes. No new allocations in the scheduling step. Windows RTX 5070 Ti, Series X, 1440p DLSS Quality, no FG, estimated lighting. Same optimized A/B exe `4882e6b4` on our `d4b5d517`-based cumulative; identical warm cache/profile seeds including 25,657 shaders. Ran **off/on then on/off**. In heavy windows with zero pending pipelines, medians (off vs on): |Pair|CPU refresh ms/frame|Median of window present p95s (ms)|Median of window p99s (ms)| |---|---|---|---| |Off first|17.35 / 14.8|68.0 / 57.2|84.1 / 59.2| |On first|17.0 / 15.6|65.1 / 63.7|72.0 / 69.0| 6–7 reports per run; second effect notably smaller, shots not visually matched. No sustained FPS, reduced total memory, or exact visual parity claim. All four reached their heavy-rendering milestone. New ordering regression passed (empty, ties, preservation of every other job); existing batch tests 5 passed, 1 ignored. Final public source uses a non-local switch name; the experimental A/B used the same selection algorithm. Checked #1138 and open refresh/scheduling PRs. #1298 targets different parts of this function; #614/#653 address clean checks/locking. Clean source merge onto `d4b5d517` verified. Would welcome an independent scene-matched run on a second machine before changing defaults.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 00:27:24 +00:00
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-29 02:11 UTC · original

An independent cold-start result from the Wine port on an RX 7900 XT, RADV 26.3.1, native 720p: 26.17 FPS with default order, 25.72 FPS with largest-first. Both used the same executable, five empty graphics caches and the full first 300 seconds of a fresh story. P99 improved by 4.32 ms with the switch, while total time in long gaps increased by 4.98 s. This covers cold startup rather than the warm, zero-pending-pipeline windows in your report. One completed run per setting. Wine measurements

**@⁠UwUCammie** on GitHub · 2026-11-29 02:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1821#issuecomment-7249262450) An independent cold-start result from the Wine port on an RX 7900 XT, RADV 26.3.1, native 720p: 26.17 FPS with default order, 25.72 FPS with largest-first. Both used the same executable, five empty graphics caches and the full first 300 seconds of a fresh story. P99 improved by 4.32 ms with the switch, while total time in long gaps increased by 4.98 s. This covers cold startup rather than the warm, zero-pending-pipeline windows in your report. One completed run per setting. [Wine measurements](https://github.com/UwUCammie/victory-amd/commit/973f7a88)
github manually merged commit 9223f9949e into main 2026-11-29 08:20:38 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1821
No description provided.