Texture staging: DROP_MIPS results, and three knobs ztrx lacks #983
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#983
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Logan-Gaillard on GitHub · 2026-11-25 14:58 UTC · original
Texture staging numbers from this fork, and one thing ztrx is missing.
Measured on
0b0074e+ the #610 change, 600 s runs, RTX 5070 Laptop 8 GB:51e7DROP_MIPS=18f8cDROP_MIPS=2c101Two points worth writing down:
DROP_MIPSchanges the picture. It halves (1) or quarters (2) textures above 512 texels (resource::drop_levels). It is visible on screen, so for judging image quality use 0 or 1, never 2.LEVELS_ON_DEMANDmeasured no better thanc101over time (422 ms median, 15 208 slots at 216 s).draw.rsreadsVICTORY_TEXTURE_STAGE_MB(default 192),VICTORY_TEXTURE_STAGE_MS(default 250) andVICTORY_TEXTURE_CATCHUP(on by default, triples both while more than 1 024 slots are due). In ztrx those two budgets are constants, so the 192/384/768 sweep can only be run here today.The cost of the first minute is host-side, not on the card: the slowest frame was 3 313 ms, of which 1 258 ms of texture work and 1 199 ms spent waiting for the title's memory to hold still — which is what
VICTORY_TEXTURE_NO_WAIT(also here) removes.Credits: @1mlesc for the measurements and the queue-order analysis, @AlexisLRC for the cross-check.
We are not claiming a fix yet: one run per question, and the mips switch changes the image, so it is not free.
@JokerAttack on GitHub · 2026-11-25 17:39 UTC · original
I'd like to investigate texture streaming and memory synchronization overhead specifically for the Series X profile on an RTX 4090, without reducing texture quality or dropping mip levels.
Is anyone actively implementing a fix for this?
@Logan-Gaillard on GitHub · 2026-11-25 17:43 UTC · original
Nobody is implementing the Series X / no-mip-drop path as a separate branch right now — what is moving is the staging queue:
VICTORY_TEXTURE_STAGE_MB(192),VICTORY_TEXTURE_STAGE_MS(250) andVICTORY_TEXTURE_CATCHUP. None of them touch mip levels, so texture quality is unchanged.DROP_MIPSis our workaround for the card-space jam, not the fix: keep it at 0 for your runs.The 1 199 ms in the first minute is host-side, waiting for the title's memory to hold still, not the card.
VICTORY_TEXTURE_NO_WAITremoves that wait and is the cheapest thing to try first on a 4090.On the Series X profile, one 600 s run with
VICTORY_TEXTURE_NO_WAIT=1and one without, same spot in the world: post the slowest frame, the texture time inside it, and the queue at end (slots parked / without memory / partly staged). That is the measure we are missing.No fix claimed on either side yet — one run per question. If your numbers come out the same as ours, the wait is not the cost on a 4090 and the queue order is.
@JokerAttack on GitHub · 2026-11-25 20:10 UTC · original
Thanks for the clarification. I completed three 600-second runs on an RTX 4090 (24 GB), using the Series X profile with
DROP_MIPS=0.VICTORY_TEXTURE_NO_WAIT=1NO_WAIT=0During the first 120 seconds of 3D activity, the range-aware patch reduced the P95 of remapping-wait samples from 832.2 ms (A) to 18.3 ms (C), a 97.8% reduction, while retaining synchronization when a remapping operation overlaps the texture's memory range.
Neither NO_WAIT nor the patch improved sustained FPS in the first room. Upstream showed very little remapping wait once in that room. This suggests that remapping waits affect initial loading rather than sustained rendering performance on this hardware. GPU workload and guest-memory copy-back overhead are the next profiling targets; staging queue ordering remains a hypothesis to investigate, not a confirmed cause.
All three runs finished without recorded device loss. Automated tests passed with the default configuration, and GPU/HLE tests passed serially with the patch enabled. Repeated benchmarks and equivalent visual captures are still pending, so the patch remains disabled by default.
The texture-processing time within the worst frame and final queue counters (parked / without memory / partly staged) are not yet available in this summary; the raw logs have been preserved for extraction. These are preliminary results, with one run per configuration.