[BENCH] RX 9060 XT 16 GB / 7800X3D - Series X, 4K out + HW RT: ~50-65 ms median; findings and local patches #5

Closed
opened 2026-11-30 16:22:18 +00:00 by github-bot · 2 comments
Owner

@⁠thefafu on GitHub · 2026-11-30 00:18 UTC · original

System Specs (CPU / RAM / GPU / Driver / OS)

Ryzen 7 7800X3D / 32 GB DDR5 (31.4 GB usable) / Radeon RX 9060 XT 16 GB (DXGI budget for the process: 14.36 GB) / AMD Software Adrenalin 26.11.2 / Windows 11 build 26300 (inbox D3D12Core; GPU upload heaps supported, no Developer Mode needed)

Commit Hash & Launch Preset

main @ f8fa30f (v0.7.0) + local patches; launch.cmd [1] variables with --console series-x, stock 3840x2160 output, VESPER_RENDER_SCALE=0.5, VESPER_BVH_BUILDER=1, VESPER_HW_BVH=1, VESPER_FRAME_INTERVAL_MS=0; release, -C target-cpu=native

Measured Metrics & Notes

Every drive starts from the same restored save (same place and time of day). Numbers are 5-second windows in play (not loading) and per-frame spike lines (a frame over 55 ms since the previous present). The title's own upscaler renders the 1920x1080 scene to the stock 4K output (HUD at native size). Shaders were pre-translated with vesper shaders using the exact launch environment; otherwise the cache key misses (~3,000 shaders were translated in play on the first run).

Configuration Median frame (5 s windows) Card busy Spikes > 100 ms / min > 200 ms / min > 500 ms / min
Mode [1] 1440p out, native, HW RT 51.5 ms ~90-95 % - - -
1080p scene -> 4K, PC FSR 4.1.2 Performance, HW RT 52.7 ms ~95 % - - -
4K out, 1440p scene (title's upscaler), HW RT 51-57 ms (city 57-85) 76-94 % 64-99 11-14 1.2-1.4
4K out, 1080p scene (title's upscaler), HW RT, 30 fps cap 50-60 ms (city) ~77 % 64-76 7-14 0.4-1.4

Memory (4K out, 1080p scene, ~5 min in the city): private ~30-33 GB, working set 18-23 GB (peak 25.5 GB), free RAM 1-5 GB; card 11.8-12.3 of 14.36 GB.

What worked (local patches on branch ours, all switches default off upstream-style)

  1. Frame clock swing. With the card at ~48 ms a frame, frames landed on the 1/30 s ticks as 33 / 66 ms by turns (every other frame over 55 ms). VESPER_FRAME_INTERVAL_MS=0 removes it; a small non-quantizing cap was added for a 30 fps ceiling (sleep the rest of 1/fps before Present, no tick alignment).
  2. View table leak (descriptor.rs Views). Placed-view entries are never freed once the shapes are full: 11 -> 446 MB in 10 minutes here. Ported an idle-entry eviction (600 frames, sliced sweeps) + hash indexes + a shape cap: 432k entries retired, 0 reads of a retired entry, table stays ~300 MB.
  3. Pool pages kept by the section's lasting view (xmem.rs Section::window). Pages the title unmapped stay in the working set through the whole-section view. Discarding pages shown by no view but the whole-section one (MEM_RESET under the views' lock, VirtualUnlock after it) while free RAM is low let 11-28 GB go per drive with under 0.5 % needed again; working set peak 25.5 -> ~18-23 GB. Important: the first version did the work in 64 MiB pieces under the lock and the title's CopyPageMappings waited behind it (77 ms a frame on the frame chain in a VESPER_TIMELINE trace); 4 MiB pieces fixed that (spikes > 200 ms/min 14 -> 7, > 500 ms/min 1.3 -> 0.4).
  4. Windows held only by stale descriptor slots (shadow.rs let_go_idle). 2,980 of 3,000 windows outside buffers (5.5 GB of non-local memory) were held by descriptor slots, so the idle sweep could never free them. Unmaking those slots (HostHeap::unmake) for windows idle 60 s frees ~600 MB; a slot used later is made again from the title's record. A verify mode counted 423 re-asks in 5 min (re-copies, no corruption seen).
  5. Measurement: a release-build per-frame spike line (shaders translated, pipelines made and their ms, page faults, free RAM, working set) and a 10-second memory census line (title sections, host copies / windows and who holds them, texture blocks, host textures, lists, view table, the card's two memory groups). These made every finding above possible.

What did not work

  • ReBAR windows (VESPER_REBAR_WINDOW_MB=1536). Twice worse: median 51 -> 67/68 ms, spikes > 100 ms/min 64 -> 99/133. First because the texture line counts the whole card use, so textures were evicted to make room (fixed locally: the texture lines leave ReBAR window bytes out, card then went to 13.4 GB with textures kept); but the second run was still worse, so the windows in VRAM themselves cost more (CPU writes/reads over the BAR). Matches the README's A/B.
  • VESPER_LIST_THREADS=12 (from 8): ~40 % more calls translated in the same wall time, but no clear frame or spike change in the city.
  • VESPER_TEXTURE_ROOM_PERCENT 80 -> 88: harmless; the texture queue was not limited by room (6,214 of 6,375 queued slots were waiting for their title memory to be streamed in, 38 for room).
  • Raising the low-RAM discard threshold from 4 to 6 GB: free RAM 2.8 -> 4.3 GB on average, no clear spike change.
  • A diagnostics GPU-timing run (VESPER_GPU_TIMING): ~520 global barriers a frame remain after the cache-only syncs are skipped (about 2.5 ms); not worth more work. The title's own ray-traced lighting passes are ~16 ms of GPU a frame at a 1440p scene.

Where the remaining time goes (city, 1080p scene)

  • List translation (list::thin): 37-60 thousand calls a frame at 4-7.6 us each (170-580 ms of thread time a frame); list::execute_indirect dominates, single calls up to 81 ms in a trace. In slow windows the card is only 50-64 % busy and idle 25-37 ms a frame waiting for submissions. (VSP-08 / VSP-02 territory.)
  • Submit thread (queue::behind): works 40-59 ms a frame with 10-12 submissions queued, a serial limit. (VSP-08.)
  • Landing jobs (relay copy-back): the largest single cause of the card's idle time in the trace (~8 ms a frame).
  • Streaming requests: single requests up to 177 ms on the frame chain.
  • RAM pressure: spikes over 100 ms are 22 % of spikes with 1-2 GB free RAM, 5 % with 5-6 GB free.

Open issues seen (filed separately)

  • Shadows show ghosting-like trails (4K out, title upscaler, HW RT).
  • No caller voice in phone calls (other dialogue plays).

The local patches are on a branch and can be shared or turned into scoped PRs following ROADMAP.md / Task Claim if useful (the pool discard one is being claimed under VSP-03). Measured on one PC; numbers vary with route and traffic.

**@⁠thefafu** on GitHub · 2026-11-30 00:18 UTC · [original](https://github.com/monte-alt/vesper/issues/5) ### System Specs (CPU / RAM / GPU / Driver / OS) Ryzen 7 7800X3D / 32 GB DDR5 (31.4 GB usable) / Radeon RX 9060 XT 16 GB (DXGI budget for the process: 14.36 GB) / AMD Software Adrenalin 26.11.2 / Windows 11 build 26300 (inbox D3D12Core; GPU upload heaps supported, no Developer Mode needed) ### Commit Hash & Launch Preset main @ f8fa30f (v0.7.0) + local patches; launch.cmd [1] variables with --console series-x, stock 3840x2160 output, VESPER_RENDER_SCALE=0.5, VESPER_BVH_BUILDER=1, VESPER_HW_BVH=1, VESPER_FRAME_INTERVAL_MS=0; release, -C target-cpu=native ### Measured Metrics & Notes Every drive starts from the same restored save (same place and time of day). Numbers are 5-second windows in play (not loading) and per-frame spike lines (a frame over 55 ms since the previous present). The title's own upscaler renders the 1920x1080 scene to the stock 4K output (HUD at native size). Shaders were pre-translated with `vesper shaders` using the exact launch environment; otherwise the cache key misses (~3,000 shaders were translated in play on the first run). | Configuration | Median frame (5 s windows) | Card busy | Spikes > 100 ms / min | > 200 ms / min | > 500 ms / min | |---|---|---|---|---|---| | Mode [1] 1440p out, native, HW RT | 51.5 ms | ~90-95 % | - | - | - | | 1080p scene -> 4K, PC FSR 4.1.2 Performance, HW RT | 52.7 ms | ~95 % | - | - | - | | 4K out, 1440p scene (title's upscaler), HW RT | 51-57 ms (city 57-85) | 76-94 % | 64-99 | 11-14 | 1.2-1.4 | | 4K out, 1080p scene (title's upscaler), HW RT, 30 fps cap | 50-60 ms (city) | ~77 % | 64-76 | 7-14 | 0.4-1.4 | Memory (4K out, 1080p scene, ~5 min in the city): private ~30-33 GB, working set 18-23 GB (peak 25.5 GB), free RAM 1-5 GB; card 11.8-12.3 of 14.36 GB. #### What worked (local patches on branch `ours`, all switches default off upstream-style) 1. **Frame clock swing.** With the card at ~48 ms a frame, frames landed on the 1/30 s ticks as 33 / 66 ms by turns (every other frame over 55 ms). `VESPER_FRAME_INTERVAL_MS=0` removes it; a small non-quantizing cap was added for a 30 fps ceiling (sleep the rest of 1/fps before Present, no tick alignment). 2. **View table leak (`descriptor.rs` `Views`).** Placed-view entries are never freed once the shapes are full: 11 -> 446 MB in 10 minutes here. Ported an idle-entry eviction (600 frames, sliced sweeps) + hash indexes + a shape cap: 432k entries retired, **0 reads of a retired entry**, table stays ~300 MB. 3. **Pool pages kept by the section's lasting view (`xmem.rs` `Section::window`).** Pages the title unmapped stay in the working set through the whole-section view. Discarding pages shown by no view but the whole-section one (MEM_RESET under the views' lock, VirtualUnlock after it) while free RAM is low let 11-28 GB go per drive with under 0.5 % needed again; working set peak 25.5 -> ~18-23 GB. **Important:** the first version did the work in 64 MiB pieces under the lock and the title's `CopyPageMappings` waited behind it (77 ms a frame on the frame chain in a `VESPER_TIMELINE` trace); 4 MiB pieces fixed that (spikes > 200 ms/min 14 -> 7, > 500 ms/min 1.3 -> 0.4). 4. **Windows held only by stale descriptor slots (`shadow.rs` `let_go_idle`).** 2,980 of 3,000 windows outside buffers (5.5 GB of non-local memory) were held by descriptor slots, so the idle sweep could never free them. Unmaking those slots (`HostHeap::unmake`) for windows idle 60 s frees ~600 MB; a slot used later is made again from the title's record. A verify mode counted 423 re-asks in 5 min (re-copies, no corruption seen). 5. **Measurement:** a release-build per-frame spike line (shaders translated, pipelines made and their ms, page faults, free RAM, working set) and a 10-second memory census line (title sections, host copies / windows and who holds them, texture blocks, host textures, lists, view table, the card's two memory groups). These made every finding above possible. #### What did not work - **ReBAR windows (`VESPER_REBAR_WINDOW_MB=1536`).** Twice worse: median 51 -> 67/68 ms, spikes > 100 ms/min 64 -> 99/133. First because the texture line counts the whole card use, so textures were evicted to make room (fixed locally: the texture lines leave ReBAR window bytes out, card then went to 13.4 GB with textures kept); but the second run was still worse, so the windows in VRAM themselves cost more (CPU writes/reads over the BAR). Matches the README's A/B. - **`VESPER_LIST_THREADS=12`** (from 8): ~40 % more calls translated in the same wall time, but no clear frame or spike change in the city. - **`VESPER_TEXTURE_ROOM_PERCENT` 80 -> 88:** harmless; the texture queue was not limited by room (6,214 of 6,375 queued slots were waiting for their title memory to be streamed in, 38 for room). - Raising the low-RAM discard threshold from 4 to 6 GB: free RAM 2.8 -> 4.3 GB on average, no clear spike change. - A diagnostics GPU-timing run (`VESPER_GPU_TIMING`): ~520 global barriers a frame remain after the cache-only syncs are skipped (about 2.5 ms); not worth more work. The title's own ray-traced lighting passes are ~16 ms of GPU a frame at a 1440p scene. #### Where the remaining time goes (city, 1080p scene) - **List translation** (`list::thin`): 37-60 thousand calls a frame at 4-7.6 us each (170-580 ms of thread time a frame); `list::execute_indirect` dominates, single calls up to 81 ms in a trace. In slow windows the card is only 50-64 % busy and idle 25-37 ms a frame waiting for submissions. (VSP-08 / VSP-02 territory.) - **Submit thread** (`queue::behind`): works 40-59 ms a frame with 10-12 submissions queued, a serial limit. (VSP-08.) - **Landing jobs** (relay copy-back): the largest single cause of the card's idle time in the trace (~8 ms a frame). - **Streaming requests:** single requests up to 177 ms on the frame chain. - **RAM pressure:** spikes over 100 ms are 22 % of spikes with 1-2 GB free RAM, 5 % with 5-6 GB free. #### Open issues seen (filed separately) - Shadows show ghosting-like trails (4K out, title upscaler, HW RT). - No caller voice in phone calls (other dialogue plays). The local patches are on a branch and can be shared or turned into scoped PRs following `ROADMAP.md` / `Task Claim` if useful (the pool discard one is being claimed under VSP-03). Measured on one PC; numbers vary with route and traffic.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 16:22:18 +00:00
Author
Owner

@⁠monte-alt on GitHub · 2026-11-30 02:50 UTC · original

appreciate the writeup, this is the exact kind of data we need.

quick breakdown of what overlaps vs what we'd love as prs:

  • we just pushed phase 1a-1c to main (pre-warmed SEND_OWN slab, xmem coalescing, O(log N) port alias map, texture catchup) and we're actively working on shadow.rs/host.rs/watch.rs + list::thin in our next internal pass — so hold off on shadow.rs let_go_idle or list::thin prs for now so we dont step on each other.
  • definitely want as scoped prs:
    1. dsp.rs phone/tv audio convolution — opened VSP-17 for it
    2. xmem.rs dead pool page discard (MEM_RESET + VirtualUnlock in 4 MiB chunks) once #4 lands — opened VSP-18
    3. descriptor.rs Views idle eviction (killing that 11 -> 446 MB leak) — opened VSP-19
    4. non-quantizing 30 fps frame pacer — opened VSP-22

also just a heads up our focus right now is strictly native series x 1440p 30 fps (VESPER_RENDER_SCALE=1.0, no upscaling or frame gen until native 30 is locked). if you get a chance to grab a native 1440p telemetry run on the new main with scripts\launch.cmd, dropping it in the pinned telemetry post would be super helpful.

**@⁠monte-alt** on GitHub · 2026-11-30 02:50 UTC · [original](https://github.com/monte-alt/vesper/issues/5#issuecomment-7267359826) appreciate the writeup, this is the exact kind of data we need. quick breakdown of what overlaps vs what we'd love as prs: - we just pushed phase 1a-1c to `main` (pre-warmed `SEND_OWN` slab, `xmem` coalescing, O(log N) port alias map, texture catchup) and we're actively working on `shadow.rs`/`host.rs`/`watch.rs` + `list::thin` in our next internal pass — so hold off on `shadow.rs` `let_go_idle` or `list::thin` prs for now so we dont step on each other. - **definitely want as scoped prs:** 1. `dsp.rs` phone/tv audio convolution — opened `VSP-17` for it 2. `xmem.rs` dead pool page discard (`MEM_RESET` + `VirtualUnlock` in 4 MiB chunks) once #4 lands — opened `VSP-18` 3. `descriptor.rs` `Views` idle eviction (killing that 11 -> 446 MB leak) — opened `VSP-19` 4. non-quantizing 30 fps frame pacer — opened `VSP-22` also just a heads up our focus right now is strictly native series x 1440p 30 fps (`VESPER_RENDER_SCALE=1.0`, no upscaling or frame gen until native 30 is locked). if you get a chance to grab a native 1440p telemetry run on the new `main` with `scripts\launch.cmd`, dropping it in the pinned telemetry post would be super helpful.
Author
Owner

@⁠monte-alt on GitHub · 2026-11-30 20:57 UTC · original

thank you for digging into this. your section-split retest in #4 is the clearest result here. p99 went from 198 to 104 ms on the same route. keeping the pool discard and view eviction claims separate until each has its own comparison.

**@⁠monte-alt** on GitHub · 2026-11-30 20:57 UTC · [original](https://github.com/monte-alt/vesper/issues/5#issuecomment-7291710348) thank you for digging into this. your section-split retest in #4 is the clearest result here. p99 went from 198 to 104 ms on the same route. keeping the pool discard and view eviction claims separate until each has its own comparison.
This discussion has been locked. Commenting is limited to contributors.
No description provided.