Texture staging: DROP_MIPS results, and three knobs ztrx lacks #981

Open
opened 2026-11-25 14:58:59 +00:00 by Logan-Gaillard · 3 comments
Logan-Gaillard commented 2026-11-25 14:58:59 +00:00 (Migrated from github.com)
Contributor

Imported from fxceless/victory-fork. Originally posted by Logan-Gaillard on 2026-11-25T14:58:59Z.


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:

Run Switch Result Queue at end First minute
51e7 DROP_MIPS=1 held 604 s 9 815 slots, 1 001 without memory, 2 571 partly, 6 243 never looked at 50 004 textures, 18.7 GB, 71.7 MB/s
8f8c DROP_MIPS=2 held 604 s the card-space blocking disappears, 6 243 parked slots gone —
c101 none 303 s, stalling 17 076 slots frozen from 60 s 11 520 textures, 3.5 GB, 10.1 MB/s

Two points worth writing down:

  1. DROP_MIPS changes 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_DEMAND measured no better than c101 over time (422 ms median, 15 208 slots at 216 s).
  2. This fork has three knobs ztrx does not: draw.rs reads VICTORY_TEXTURE_STAGE_MB (default 192), VICTORY_TEXTURE_STAGE_MS (default 250) and VICTORY_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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6607377665 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/983). Originally posted by [Logan-Gaillard](https://github.com/Logan-Gaillard) on 2026-11-25T14:58:59Z. --- 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: | Run | Switch | Result | Queue at end | First minute | | --- | --- | --- | --- | --- | | `51e7` | `DROP_MIPS=1` | held 604 s | 9 815 slots, 1 001 without memory, 2 571 partly, 6 243 never looked at | 50 004 textures, 18.7 GB, 71.7 MB/s | | `8f8c` | `DROP_MIPS=2` | held 604 s | the card-space blocking disappears, 6 243 parked slots gone | — | | `c101` | none | 303 s, stalling | 17 076 slots frozen from 60 s | 11 520 textures, 3.5 GB, 10.1 MB/s | Two points worth writing down: 1. **`DROP_MIPS` changes 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_DEMAND` measured no better than `c101` over time (422 ms median, 15 208 slots at 216 s). 2. **This fork has three knobs ztrx does not**: `draw.rs` reads `VICTORY_TEXTURE_STAGE_MB` (default 192), `VICTORY_TEXTURE_STAGE_MS` (default 250) and `VICTORY_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 commented 2026-11-25 18:05:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by JokerAttack on 2026-11-25T17:39:47Z.


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?

<!-- greyfinch-sync:fxceless/victory-fork:comment:7169822734 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/983#issuecomment-7169822734). Originally posted by [JokerAttack](https://github.com/JokerAttack) on 2026-11-25T17:39:47Z. --- 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 commented 2026-11-25 18:05:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Logan-Gaillard on 2026-11-25T17:43:49Z.


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) and VICTORY_TEXTURE_CATCHUP. None of them touch mip levels, so texture quality is unchanged. DROP_MIPS is 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_WAIT removes 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=1 and 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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7169917573 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/983#issuecomment-7169917573). Originally posted by [Logan-Gaillard](https://github.com/Logan-Gaillard) on 2026-11-25T17:43:49Z. --- 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) and `VICTORY_TEXTURE_CATCHUP`. None of them touch mip levels, so texture quality is unchanged. `DROP_MIPS` is 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_WAIT` removes 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=1` and 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 commented 2026-11-25 21:05:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by JokerAttack on 2026-11-25T20:10:32Z.


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.

Configuration Average FPS P99 frame time Worst frame
A — Upstream, normal 5.27 300 ms 1026 ms
B — Upstream, VICTORY_TEXTURE_NO_WAIT=1 5.22 299 ms 926 ms
C — Range-aware synchronization patch, NO_WAIT=0 5.27 301 ms 1023 ms

During 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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7173291615 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/983#issuecomment-7173291615). Originally posted by [JokerAttack](https://github.com/JokerAttack) on 2026-11-25T20:10:32Z. --- 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`. | Configuration | Average FPS | P99 frame time | Worst frame | |---|---:|---:|---:| | A — Upstream, normal | 5.27 | 300 ms | 1026 ms | | B — Upstream, `VICTORY_TEXTURE_NO_WAIT=1` | 5.22 | 299 ms | 926 ms | | C — Range-aware synchronization patch, `NO_WAIT=0` | 5.27 | 301 ms | 1023 ms | During 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.
Sign in to join this conversation.
No labels
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.

Reference
fxceless/victory-fork#981
No description provided.