#221 verification data: RX 9070 XT, 1440p native, RT on — long frames in the streaming phase are copy waits, not worker CPU #387

Open
opened 2026-12-03 23:41:23 +00:00 by github-bot · 4 comments
Owner

@⁠wrz1911 on GitHub · 2026-12-03 23:36 UTC · original

#221 verification data: RX 9070 XT 16 GB, 1440p native, RT on, page moving on — streaming under VRAM pressure

Related: #221 (and #303).

System

  • CPU: Intel Core Ultra 7 270K Plus (Arrow Lake, 24 logical threads — no SMT)
  • GPU: AMD Radeon RX 9070 XT 16 GB (RDNA4, GFX1201), RADV with the project's patches (mesa-gta6 26.3.1)
  • RAM: 31 GiB
  • OS: Arch Linux, Btrfs (compress=zstd:3), system Wine 11.23 (NTSYNC up)
  • xmem: 1152b9c (includes #221), release build with -C target-cpu=x86-64-v3
  • Game: GTA VI Xbox build 930.048.020

run.conf (relevant)

VICTORY_OUTPUT=2560x1440
VICTORY_BVH_BUILDER=1        # RT on
VICTORY_FSR_4K=  (unset)     # native 1440p, FSR4 off
VICTORY_FIDELITYFX_FRAMEGEN=0
# VICTORY_PAGES unset        # page moving on
VICTORY_PRESENT_TIMING=1

Warm

94,210 pipelines in 11.4 min, 12 processes, 0 bad, 18 GB cache (default jobs = cpus/2, #336 fix — no stalls).

Measurements (10 min driving through the city, streaming under VRAM pressure)

Frame rate:

Measure Value
presented (external tool) ~20-25 fps
submit (logical, log) 38/s
long frames (>= 50 ms) 806 in the first ~5 min, 20 in the last 2 min (loading settles)

Long-frame breakdown (long frame lines, 809 samples):

Field mean max
frame_ms 224.8 4913.8
preparing_ms 166.3 4536.9
copy_ms 154.5 4530.5
copy_mb 0.5 126.0
gpu_wait_ms 9.3 76.8
texture_ms 1.0 81.6

Residency (10 min, page moving on):

65,598 pages moved up (0 seen), 55,323 down when the processor touched (14,700 within 2 s of promotion),
50.5 s moving since start, last pass 13-35 ms, 0 pages wait for room,
card room 14,256 MB, 2,003 MB free at the peak

Textures:

23,732 waiting, 59,285 passed over unmapped, 108,229 copies stopped at an unmapped page

After loading settles (last 2 min): remaining hitches are gpu_wait_ms 35-56, copy_ms ~2, i.e. GPU-bound at 1440p native + RT.

Observation

  1. In the streaming phase the long frames are dominated by PREPARING[0] (reported as copy_ms): mean 154 ms (max 4.5 s) while only ~0.5 MB is copied per frame — the time is spent waiting, not moving bytes.
  2. Worker-side candidate-construction CPU (what #221 changes) does not show up as the bottleneck here; the cost is in the copy/step path under streaming pressure.
  3. Two separate runs (plain release and diagnostics build) gave the same distribution (copy_ms mean ~154 ms), so it is reproducible.
  4. Once streaming settles the hitches become pure GPU waits (35-56 ms) at native 1440p + RT — a different (GPU-bound) cost.

Hope this helps for the #221/#303 comparison; happy to run more scenarios (e.g. lower VICTORY_VRAM_BUDGET_MB to force more pressure).

**@⁠wrz1911** on GitHub · 2026-12-03 23:36 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/387) ## #221 verification data: RX 9070 XT 16 GB, 1440p native, RT on, page moving on — streaming under VRAM pressure Related: #221 (and #303). ### System - CPU: Intel Core Ultra 7 270K Plus (Arrow Lake, 24 logical threads — **no SMT**) - GPU: AMD Radeon RX 9070 XT 16 GB (RDNA4, GFX1201), RADV with the project's patches (mesa-gta6 26.3.1) - RAM: 31 GiB - OS: Arch Linux, Btrfs (compress=zstd:3), system Wine 11.23 (NTSYNC up) - xmem: `1152b9c` (includes #221), release build with `-C target-cpu=x86-64-v3` - Game: GTA VI Xbox build 930.048.020 ### run.conf (relevant) ``` VICTORY_OUTPUT=2560x1440 VICTORY_BVH_BUILDER=1 # RT on VICTORY_FSR_4K= (unset) # native 1440p, FSR4 off VICTORY_FIDELITYFX_FRAMEGEN=0 # VICTORY_PAGES unset # page moving on VICTORY_PRESENT_TIMING=1 ``` ### Warm 94,210 pipelines in 11.4 min, 12 processes, **0 bad**, 18 GB cache (default jobs = cpus/2, #336 fix — no stalls). ### Measurements (10 min driving through the city, streaming under VRAM pressure) Frame rate: | Measure | Value | |---|---| | presented (external tool) | **~20-25 fps** | | submit (logical, log) | 38/s | | long frames (>= 50 ms) | **806** in the first ~5 min, **20** in the last 2 min (loading settles) | Long-frame breakdown (`long frame` lines, 809 samples): | Field | mean | max | |---|---|---| | frame_ms | 224.8 | 4913.8 | | preparing_ms | 166.3 | 4536.9 | | **copy_ms** | **154.5** | **4530.5** | | copy_mb | 0.5 | 126.0 | | gpu_wait_ms | 9.3 | 76.8 | | texture_ms | 1.0 | 81.6 | Residency (10 min, page moving on): ``` 65,598 pages moved up (0 seen), 55,323 down when the processor touched (14,700 within 2 s of promotion), 50.5 s moving since start, last pass 13-35 ms, 0 pages wait for room, card room 14,256 MB, 2,003 MB free at the peak ``` Textures: ``` 23,732 waiting, 59,285 passed over unmapped, 108,229 copies stopped at an unmapped page ``` After loading settles (last 2 min): remaining hitches are `gpu_wait_ms 35-56`, `copy_ms ~2`, i.e. GPU-bound at 1440p native + RT. ### Observation 1. In the streaming phase the long frames are dominated by `PREPARING[0]` (reported as `copy_ms`): **mean 154 ms** (max 4.5 s) while only **~0.5 MB** is copied per frame — the time is spent waiting, not moving bytes. 2. Worker-side candidate-construction CPU (what #221 changes) does not show up as the bottleneck here; the cost is in the copy/step path under streaming pressure. 3. Two separate runs (plain release and diagnostics build) gave the same distribution (copy_ms mean ~154 ms), so it is reproducible. 4. Once streaming settles the hitches become pure GPU waits (35-56 ms) at native 1440p + RT — a different (GPU-bound) cost. Hope this helps for the #221/#303 comparison; happy to run more scenarios (e.g. lower `VICTORY_VRAM_BUDGET_MB` to force more pressure).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 23:41:26 +00:00
Author
Owner

@⁠wrz1911 on GitHub · 2026-12-03 23:37 UTC · original

For clarity on the scenario: the whole 10 minutes was continuous driving through the city streets (never parked), so streaming/VRAM pressure was continuous throughout — long frames keep appearing while moving into unloaded areas, and drop to near zero only when the car stops or stays in an already-loaded area. The 20-25 fps presented figure is what the external overlay shows during that drive.

**@⁠wrz1911** on GitHub · 2026-12-03 23:37 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/387#issuecomment-7395785490) For clarity on the scenario: the whole 10 minutes was **continuous driving through the city streets** (never parked), so streaming/VRAM pressure was continuous throughout — long frames keep appearing while moving into unloaded areas, and drop to near zero only when the car stops or stays in an already-loaded area. The 20-25 fps presented figure is what the external overlay shows during that drive.
Author
Owner

@⁠wrz1911 on GitHub · 2026-12-03 23:45 UTC · original

Follow-up: same machine, RT off + 1080p rendered -> 1440p output

Same run conditions (continuous city driving, streaming), only two changes: VICTORY_BVH_BUILDER=0 (RT off) and VICTORY_RENDER_SCALE=0.75 (1080p rendered, the title's own upscaler to 1440p output).

Comparison (same car route, continuous driving)

measure 1440p native + RT 1080p -> 1440p, RT off
long frames (>= 50 ms) 809 / 10 min (~81/min) 596 / 6.5 min (~92/min)
frame_ms mean / max 224.8 / 4913.8 134.7 / 4996.6
preparing_ms mean 166.3 70.2
copy_ms mean / max 154.5 / 4530.5 64.0 / 1857.3
copy_mb mean 0.5 0.2
gpu_wait_ms mean / max 9.3 / 76.8 2.7 / 52.7
texture_ms mean 1.0 1.3

What changed

  • GPU waits are almost gone (9.3 -> 2.7 ms mean, max 77 -> 53): at RT off and 56% of the pixels the card keeps up; the hitches are no longer GPU-bound.
  • The per-hitch cost is much smaller (frame_ms 225 -> 135): the user reports "way better, the drop to single-digit fps is rare now".
  • copy_ms halved (155 -> 64) but still the dominant part of the remaining long frames, with copy_mb mean 0.2 MB — i.e. the same "waiting, not moving bytes" pattern as before, now at half the cost.
  • Long-frame count per minute is similar (~81 -> ~92); what improved is the size of each hit and the loss of the big GPU stalls.

Conclusion

For #221/#303 comparison: the copy path (PREPARING[0]) under streaming is the remaining cost on this machine once GPU load is reduced. The worker-side CPU change of #221 does not show up as the bottleneck; the copy waits do.

**@⁠wrz1911** on GitHub · 2026-12-03 23:45 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/387#issuecomment-7395958580) ## Follow-up: same machine, RT off + 1080p rendered -> 1440p output Same run conditions (continuous city driving, streaming), only two changes: `VICTORY_BVH_BUILDER=0` (RT off) and `VICTORY_RENDER_SCALE=0.75` (1080p rendered, the title's own upscaler to 1440p output). ### Comparison (same car route, continuous driving) | measure | 1440p native + RT | 1080p -> 1440p, RT off | |---|---|---| | long frames (>= 50 ms) | 809 / 10 min (~81/min) | 596 / 6.5 min (~92/min) | | frame_ms mean / max | 224.8 / 4913.8 | 134.7 / 4996.6 | | preparing_ms mean | 166.3 | 70.2 | | **copy_ms mean / max** | **154.5 / 4530.5** | **64.0 / 1857.3** | | copy_mb mean | 0.5 | 0.2 | | **gpu_wait_ms mean / max** | **9.3 / 76.8** | **2.7 / 52.7** | | texture_ms mean | 1.0 | 1.3 | ### What changed - **GPU waits are almost gone** (9.3 -> 2.7 ms mean, max 77 -> 53): at RT off and 56% of the pixels the card keeps up; the hitches are no longer GPU-bound. - **The per-hitch cost is much smaller** (frame_ms 225 -> 135): the user reports "way better, the drop to single-digit fps is rare now". - **copy_ms halved** (155 -> 64) but still the dominant part of the remaining long frames, with copy_mb mean 0.2 MB — i.e. the same "waiting, not moving bytes" pattern as before, now at half the cost. - Long-frame count per minute is similar (~81 -> ~92); what improved is the size of each hit and the loss of the big GPU stalls. ### Conclusion For #221/#303 comparison: the copy path (PREPARING[0]) under streaming is the remaining cost on this machine once GPU load is reduced. The worker-side CPU change of #221 does not show up as the bottleneck; the copy waits do.
Author
Owner

@⁠wrz1911 on GitHub · 2026-12-03 23:59 UTC · original

Follow-up: same 1080p->1440p + RT off, but VICTORY_PAGES=0 (page moving off), 10 min driving

Same machine, same continuous city driving, same rendering config as the previous comment (VICTORY_RENDER_SCALE=0.75, VICTORY_BVH_BUILDER=0), only VICTORY_PAGES=0 added.

Comparison (page moving on vs off, at 1080p->1440p, RT off)

measure page moving on page moving off (PAGES=0)
long frames (>= 50 ms) 596 / 6.5 min (~92/min) 490 / 10.8 min (~45/min)
frame_ms mean / max 134.7 / 4996.6 98.0 / 6811.3
preparing_ms mean 70.2 25.6
copy_ms mean 64.0 18.9
gpu_wait_ms mean 2.7 10.2
submit (logical) 33-38/s 48/s
frames > 500 ms — 4 (2 of them ~6.8 s, rare)

Reading

  • With page moving off, the copy/preparing cost drops sharply (copy_ms 64 -> 19, preparing 70 -> 26) and the logical rate goes to ~48/s; the long-frame count per minute is roughly halved.
  • The cost moves to GPU waits (gpu_wait_ms 2.7 -> 10.2): without migration the card waits for memory instead.
  • There are still 4 frames > 500 ms in 10.8 min (the same rare multi-second copy event seen earlier, max 6.8 s), so PAGES=0 does not remove the rare big hitch, it removes the steady stream of medium ones.
  • Expected side effects of PAGES=0 (#239): shadows/light flicker and some untextured objects in places — the known trade-off of VICTORY_PAGES=0 (see #239 Run 3). This is expected here, not a regression.
  • User's perception at 1080p->1440p, RT off: "average 30+, visually never drops below 20", consistent with the ~45 long frames/min and higher submit rate.

Conclusion for #221/#303

The page-moving copy path (PREPARING[0]) keeps showing as the dominant cost while streaming; turning it off trades copy waits for GPU memory waits plus the #239 visual side effects. The worker-CPU change of #221 does not show up as the bottleneck in either configuration.

**@⁠wrz1911** on GitHub · 2026-12-03 23:59 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/387#issuecomment-7396239023) ## Follow-up: same 1080p->1440p + RT off, but `VICTORY_PAGES=0` (page moving off), 10 min driving Same machine, same continuous city driving, same rendering config as the previous comment (`VICTORY_RENDER_SCALE=0.75`, `VICTORY_BVH_BUILDER=0`), only `VICTORY_PAGES=0` added. ### Comparison (page moving on vs off, at 1080p->1440p, RT off) | measure | page moving on | **page moving off (`PAGES=0`)** | |---|---|---| | long frames (>= 50 ms) | 596 / 6.5 min (~92/min) | **490 / 10.8 min (~45/min)** | | frame_ms mean / max | 134.7 / 4996.6 | **98.0 / 6811.3** | | preparing_ms mean | 70.2 | **25.6** | | copy_ms mean | 64.0 | **18.9** | | **gpu_wait_ms mean** | 2.7 | **10.2** | | submit (logical) | 33-38/s | **48/s** | | frames > 500 ms | — | 4 (2 of them ~6.8 s, rare) | ### Reading - With page moving off, the copy/preparing cost drops sharply (copy_ms 64 -> 19, preparing 70 -> 26) and the logical rate goes to ~48/s; the long-frame count per minute is roughly halved. - The cost moves to **GPU waits** (gpu_wait_ms 2.7 -> 10.2): without migration the card waits for memory instead. - There are still 4 frames > 500 ms in 10.8 min (the same rare multi-second copy event seen earlier, max 6.8 s), so `PAGES=0` does not remove the rare big hitch, it removes the steady stream of medium ones. - **Expected side effects of `PAGES=0` (#239):** shadows/light flicker and some untextured objects in places — the known trade-off of `VICTORY_PAGES=0` (see #239 Run 3). This is expected here, not a regression. - User's perception at 1080p->1440p, RT off: "average 30+, visually never drops below 20", consistent with the ~45 long frames/min and higher submit rate. ### Conclusion for #221/#303 The page-moving copy path (PREPARING[0]) keeps showing as the dominant cost while streaming; turning it off trades copy waits for GPU memory waits plus the #239 visual side effects. The worker-CPU change of #221 does not show up as the bottleneck in either configuration.
Author
Owner

@⁠wrz1911 on GitHub · 2026-12-04 00:12 UTC · original

Follow-up: 2560x1440 native + RT on + VICTORY_PAGES=0, 11 min driving

Same machine, same continuous city driving. Third rendering configuration: VICTORY_RENDER_SCALE=1.0 (native 1440p), VICTORY_BVH_BUILDER=1 (RT on), VICTORY_PAGES=0 (page moving off), VICTORY_PRESENT_TIMING=1.

Measurements (11 min, 2,313 long frames)

measure value
long frames (>= 50 ms) 2,313 / 11 min (~210/min)
frame_ms mean / max 71.2 / 7,147.6
preparing_ms mean / max 20.2 / 1,096.1
copy_ms mean / max 7.0 / 1,095.7
copy_mb mean / max 0.4 / 109.2
gpu_wait_ms mean / max 13.7 / 93.3
texture_ms mean / max 0.8 / 205.7
> 200 ms 35
> 500 ms 4
> 1000 ms 2
submit (logical) 24-48/s (varies with load)

Reading

  • With page moving off at native 1440p + RT, the long-frame count is high (~210/min) but almost all are 50-200 ms; only 4 exceed 500 ms and 2 exceed 1 s (max 7.1 s, a rare one).
  • The copy cost is small again (copy_ms mean 7.0, max 1.1 s once), while gpu_wait is the larger mean (13.7) — with page moving off, the card mostly waits for memory.
  • The user's perception here was "not stuttery, never drops to single digits" — consistent with the hitches being short most of the time, with the seconds-long one being rare.
  • Expected side effect kept: with PAGES=0, shadows/light flicker and some untextured objects in places (#239 Run 3) — expected, not a regression.

Summary of the three configurations (same machine)

config long frames/min max hitch mean gpu_wait perceived
1440p native + RT, page moving on ~81 4.9 s 9.3 single-digit drops
1080p->1440p, RT off, page moving on ~92 5.0 s 2.7 better, big hitches rare
1080p->1440p, RT off, page 0 ~45 6.8 s (rare) 10.2 "never below 20"
1440p native + RT, page 0 ~210 7.1 s (rare) 13.7 "not stuttery, no single digits"

The short-hitch frequency and the rare multi-second hitch seem to be separate things: page moving trades fewer medium hitches for a big GPU stall; page 0 trades many short GPU waits for less copy. The underlying multi-second copy event (copy_ms up to 1.1-4.5 s on a few 0.1-0.5 MB ranges) shows up in both.

**@⁠wrz1911** on GitHub · 2026-12-04 00:12 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/387#issuecomment-7396505566) ## Follow-up: 2560x1440 native + RT on + `VICTORY_PAGES=0`, 11 min driving Same machine, same continuous city driving. Third rendering configuration: `VICTORY_RENDER_SCALE=1.0` (native 1440p), `VICTORY_BVH_BUILDER=1` (RT on), **`VICTORY_PAGES=0`** (page moving off), `VICTORY_PRESENT_TIMING=1`. ### Measurements (11 min, 2,313 long frames) | measure | value | |---|---| | long frames (>= 50 ms) | 2,313 / 11 min (~210/min) | | frame_ms mean / max | 71.2 / **7,147.6** | | preparing_ms mean / max | 20.2 / 1,096.1 | | copy_ms mean / max | 7.0 / 1,095.7 | | copy_mb mean / max | 0.4 / 109.2 | | gpu_wait_ms mean / max | 13.7 / 93.3 | | texture_ms mean / max | 0.8 / 205.7 | | > 200 ms | 35 | | > 500 ms | 4 | | > 1000 ms | 2 | | submit (logical) | 24-48/s (varies with load) | ### Reading - With page moving off at native 1440p + RT, the long-frame **count** is high (~210/min) but almost all are 50-200 ms; only 4 exceed 500 ms and 2 exceed 1 s (max 7.1 s, a rare one). - The copy cost is small again (copy_ms mean 7.0, max 1.1 s once), while **gpu_wait is the larger mean (13.7)** — with page moving off, the card mostly waits for memory. - The user's perception here was "not stuttery, never drops to single digits" — consistent with the hitches being short most of the time, with the seconds-long one being rare. - Expected side effect kept: with `PAGES=0`, shadows/light flicker and some untextured objects in places (#239 Run 3) — expected, not a regression. ### Summary of the three configurations (same machine) | config | long frames/min | max hitch | mean gpu_wait | perceived | |---|---|---|---|---| | 1440p native + RT, page moving on | ~81 | 4.9 s | 9.3 | single-digit drops | | 1080p->1440p, RT off, page moving on | ~92 | 5.0 s | 2.7 | better, big hitches rare | | 1080p->1440p, RT off, page 0 | ~45 | 6.8 s (rare) | 10.2 | "never below 20" | | **1440p native + RT, page 0** | ~210 | 7.1 s (rare) | 13.7 | "not stuttery, no single digits" | The short-hitch frequency and the rare multi-second hitch seem to be separate things: page moving trades fewer medium hitches for a big GPU stall; page 0 trades many short GPU waits for less copy. The underlying multi-second copy event (copy_ms up to 1.1-4.5 s on a few 0.1-0.5 MB ranges) shows up in both.
This discussion has been locked. Commenting is limited to contributors.
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/lobomfz--VIctory-xmem#387
No description provided.