Performance bottleneck on RTX 5060 8GB (i5 12400F): CPU-bound, heavy landing times, and fast memory exhaustion. #36

Open
opened 2026-11-26 16:12:24 +00:00 by github-bot · 3 comments
Owner

@⁠rino237gk on GitHub · 2026-11-26 16:08 UTC · original

Environment:

  • CPU: Intel Core i5-12400F
  • GPU: NVIDIA GeForce RTX 5060 (8 GB VRAM)
  • RAM: 32 GB DDR4 (Pagefile: 32 GB max)
  • OS: Windows 11
  • Build: Vice-Tay (diag profile, shaders pre-compiled, 25,685 shaders in cache)
  • Profile: Series S (-Console series-s -Windowed)

Current Status:
The game is running and is quite stable, but performance is heavily bottlenecked on the CPU side and by memory constraints. I achieve 9-12 FPS on the Series S profile.

Observations from the log:

  1. GPU is not the bottleneck: The log shows the GPU is roughly 72% busy, and there are moments where it sits idle waiting for the CPU (the card idle behind us).
  2. Heavy CPU Overhead in Landing/Lists: The victory_gpu::land and list calls translated steps are taking 50-60ms per frame. 67,272 list calls are translated per frame, and landing takes 51.37 ms across 6 threads.
  3. Rapid Memory Exhaustion: As noted in the README, memory grows rapidly. In my case with 32 GB of RAM and 8 GB of VRAM, the game exhausts physical RAM within 10-15 minutes, forcing Windows to use the Pagefile, which causes severe stuttering. The log shows 262.0 MB of title buffers' copies being compared per frame, and 592,000 texture slots so far.

Question/Request:
Since the GPU has headroom, are there any current VICTORY_... environment variables or settings I can tweak to reduce the CPU landing and list translation overhead? Or is the current CPU bottleneck strictly tied to the memory leak/residency architecture that is being worked on?

Log excerpt attached below:

2026-11-26T16:05:08.294044Z  INFO victory_gpu::host::card_steps: done on the card, per frame: 5593.00 fills of 0x1e0 bytes from the host copy of 0x33800000+0xae00000 (last 0x33e9fd00)
2026-11-26T16:05:08.294131Z  INFO victory_gpu::host::card_steps: done on the card, per frame: 664.71 fills of 0xc0 bytes from the host copy of 0x33800000+0xae00000 (last 0x370617e0)
2026-11-26T16:05:08.294197Z  INFO victory_gpu::host::card_steps: done on the card, per frame: 644.71 fills of 0x290 bytes from the host copy of 0x33800000+0xae00000 (last 0x36d5c6a0)
2026-11-26T16:05:08.294271Z  INFO victory_gpu::host::card_steps: done on the card, per frame: 640.43 fills of 0x50 bytes from the host copy of 0x33800000+0xae00000 (last 0x3826b970)
2026-11-26T16:05:08.294331Z  INFO victory_gpu::host::card_steps: done on the card, per frame: 614.00 fills of 0x100 bytes from the host copy of 0x33800000+0xae00000 (last 0x374b98d0)
2026-11-26T16:05:08.294391Z  INFO victory_gpu::host: waited for flights, per frame: 8.2 ms in 0.29 waits for a synchronous submission, a present or the sweep +0x0 (last at 0x0), in shader writes declared over 0x0+0x0 (declared per frame over a megabyte or more there, by shader: )
2026-11-26T16:05:08.294471Z  INFO victory_gpu::host: title bytes put in under flights' shader writes per frame (VICTORY_LATE_WAIT=2): 210 pages looked at, 134196 changed runs, 2.03 MB
2026-11-26T16:05:08.294528Z  INFO victory_gpu::list::thin: list calls translated by threads of ours per frame (VICTORY_THIN): 67272 in 624.5 ms (all threads), 226.1 lists, 438.9 pieces; left in the middle 0.00
2026-11-26T16:05:08.294593Z  INFO victory_gpu::queue::behind: submissions prepared by a thread of ours, per frame (VICTORY_ASYNC_SUBMIT): 43.0 in 1.0 presents, 16.5 in the line when one was added (at most 53); that thread worked 152.6 ms; threads of the title waited 0.0 ms for room in the line, 65.3 ms at presents, 0.0 ms in 0.0 drains; waits not met at a present 0.00; 26.0 of the submissions were prepared together with the one before them (VICTORY_JOIN_PARTS)
2026-11-26T16:05:08.294656Z  INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 44.1 ms (the card about 72% busy by this count), 42.4 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submitting thread stood waiting for the card 8.4 ms
2026-11-26T16:05:08.294713Z  INFO victory_gpu::shadow: shader writes looked for on the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 262.0 MB in 453 ranges of title buffers' copies (240.2 MB snapshotted), of them 225.9 MB in copies of 1 MiB or more (VICTORY_CARD_BUFFERS_MIN_MB=1 would have the card look there)
2026-11-26T16:05:08.294771Z  INFO victory_gpu::host: preparing per frame, the submitting thread: 5.4 ms asking the write watch (0.8 of them finding what to ask), 9.6 putting the title's bytes under flights' writes, 49.3 in the lists' steps (refreshes 37.5 in 42 flushes of 8764, 7357 of them known to copy nothing, 8243 on several threads, 3.3 one at a time in 280 before shader writes; copies and fills 4.1, the refreshes before copies among them), 19.7 snapshots, 8.6 for copies in the card's memory, 2.9 sending the lists (VICTORY_LIGHT_REFRESH is on); ahead of these 22.3 waiting for the submission lock, 14.7 planning steps done on the card, 8.3 waiting for flights, 10.1 the heaps' records and what is swept; at the end 19.2 waiting for the heaps' records; asked early by a thread of its own 0 pieces of 2 MiB, 0.0 ms (VICTORY_ASK_EARLY)
2026-11-26T16:05:08.294829Z  INFO victory_gpu::host: asking about title memory per frame, all threads: 267 kernel askings over 1453 MB (4.9 ms, 4511 pages of 4 KiB found written, 319 askings refused); 5 questions about holes; view ranges: 600 answered by their bits, 0 by the guards whole, 203 block by block; 808 blocks made read-only, 28 opened by ourselves; 20.3 ms waiting for the guards, 10.2 ms changing protections; pages taken for the card: 0.0 MB compared, 0.0 MB of them as they were, 0.0 MB to go up in 3 runs (VICTORY_SEND_CHANGED)
2026-11-26T16:05:08.294884Z  INFO victory_gpu::host: the pass over the heap's views per frame: 30.2 ms looking at slots, 5.1 their copies' spans and refreshes, 10.0 textures; the first two beside the recording (VICTORY_HEAP_PASS_ASIDE), 23.4 ms waited for at the lists' close
2026-11-26T16:05:08.294936Z  INFO victory_gpu::host: our passes over copies in the card's memory per frame: 133 hash passes over 767 pieces after ranges were sent up (VICTORY_CARD_REHASH_RUNS=1 joins them: now on), 14 compare passes
2026-11-26T16:05:08.294989Z  INFO victory_gpu::host: texture refreshes per frame, all threads: 6.4 ms, of them 0.0 ms waiting for a texture another thread is refreshing, 1.5 ms asking the write watch and the guards, 0.0 ms waiting for title memory to hold still (the runtime remapping it); the rest is reading, hashing and detiling
2026-11-26T16:05:08.295041Z  INFO victory_gpu::host: texture refreshes that did not wait for title memory to hold still, per frame (VICTORY_TEXTURE_NO_WAIT=1): 1.7 read through the kernel, 0.0 left for the next refresh (a page was not there), 0.0 first fillings from the pages there (VICTORY_TEXTURE_FILL=0: left empty), 0.0 of them with less than was mapped (looked at again)
2026-11-26T16:05:08.295094Z  INFO victory_gpu::host: title buffer copies recorded per frame: 1, of them 0 continue the one before (VICTORY_JOIN_COPIES=1 makes those one copy with it: now on)
2026-11-26T16:05:08.539740Z  INFO victory_gpu::texback: texture readback landed copied=266496 bytes=262144
2026-11-26T16:05:08.885345Z  INFO victory_loader::console_insn::sites: console CPU instructions that fault, a second: extrq/insertq 394; places replaced so far: 7; the busiest places: 0x7ff9dda87ff1 extrq/insertq 349, 0x7ff9dda1c8f2 extrq/insertq 45
2026-11-26T16:05:09.042805Z  INFO victory_gpu::draw: a texture already on the card is brought up to date although the card has no room for new ones so_far=592000 slot=584210```
**@⁠rino237gk** on GitHub · 2026-11-26 16:08 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/36) **Environment:** - CPU: Intel Core i5-12400F - GPU: NVIDIA GeForce RTX 5060 (8 GB VRAM) - RAM: 32 GB DDR4 (Pagefile: 32 GB max) - OS: Windows 11 - Build: Vice-Tay (diag profile, shaders pre-compiled, 25,685 shaders in cache) - Profile: Series S (`-Console series-s -Windowed`) **Current Status:** The game is running and is quite stable, but performance is heavily bottlenecked on the CPU side and by memory constraints. I achieve 9-12 FPS on the Series S profile. **Observations from the log:** 1. **GPU is not the bottleneck:** The log shows the GPU is roughly 72% busy, and there are moments where it sits idle waiting for the CPU (`the card idle behind us`). 2. **Heavy CPU Overhead in Landing/Lists:** The `victory_gpu::land` and `list calls translated` steps are taking 50-60ms per frame. 67,272 list calls are translated per frame, and landing takes 51.37 ms across 6 threads. 3. **Rapid Memory Exhaustion:** As noted in the README, memory grows rapidly. In my case with 32 GB of RAM and 8 GB of VRAM, the game exhausts physical RAM within 10-15 minutes, forcing Windows to use the Pagefile, which causes severe stuttering. The log shows 262.0 MB of title buffers' copies being compared per frame, and 592,000 texture slots so far. **Question/Request:** Since the GPU has headroom, are there any current `VICTORY_...` environment variables or settings I can tweak to reduce the CPU `landing` and `list translation` overhead? Or is the current CPU bottleneck strictly tied to the memory leak/residency architecture that is being worked on? **Log excerpt attached below:** ```2026-11-26T16:05:08.293981Z INFO victory_gpu::host::card_steps: steps done on the card instead of waiting for flights, per frame (VICTORY_CARD_STEPS=2): 11473.43 fills, 0.00 buffer copies, 4623.4 KB; 0.00 submissions refused and waited 2026-11-26T16:05:08.294044Z INFO victory_gpu::host::card_steps: done on the card, per frame: 5593.00 fills of 0x1e0 bytes from the host copy of 0x33800000+0xae00000 (last 0x33e9fd00) 2026-11-26T16:05:08.294131Z INFO victory_gpu::host::card_steps: done on the card, per frame: 664.71 fills of 0xc0 bytes from the host copy of 0x33800000+0xae00000 (last 0x370617e0) 2026-11-26T16:05:08.294197Z INFO victory_gpu::host::card_steps: done on the card, per frame: 644.71 fills of 0x290 bytes from the host copy of 0x33800000+0xae00000 (last 0x36d5c6a0) 2026-11-26T16:05:08.294271Z INFO victory_gpu::host::card_steps: done on the card, per frame: 640.43 fills of 0x50 bytes from the host copy of 0x33800000+0xae00000 (last 0x3826b970) 2026-11-26T16:05:08.294331Z INFO victory_gpu::host::card_steps: done on the card, per frame: 614.00 fills of 0x100 bytes from the host copy of 0x33800000+0xae00000 (last 0x374b98d0) 2026-11-26T16:05:08.294391Z INFO victory_gpu::host: waited for flights, per frame: 8.2 ms in 0.29 waits for a synchronous submission, a present or the sweep +0x0 (last at 0x0), in shader writes declared over 0x0+0x0 (declared per frame over a megabyte or more there, by shader: ) 2026-11-26T16:05:08.294471Z INFO victory_gpu::host: title bytes put in under flights' shader writes per frame (VICTORY_LATE_WAIT=2): 210 pages looked at, 134196 changed runs, 2.03 MB 2026-11-26T16:05:08.294528Z INFO victory_gpu::list::thin: list calls translated by threads of ours per frame (VICTORY_THIN): 67272 in 624.5 ms (all threads), 226.1 lists, 438.9 pieces; left in the middle 0.00 2026-11-26T16:05:08.294593Z INFO victory_gpu::queue::behind: submissions prepared by a thread of ours, per frame (VICTORY_ASYNC_SUBMIT): 43.0 in 1.0 presents, 16.5 in the line when one was added (at most 53); that thread worked 152.6 ms; threads of the title waited 0.0 ms for room in the line, 65.3 ms at presents, 0.0 ms in 0.0 drains; waits not met at a present 0.00; 26.0 of the submissions were prepared together with the one before them (VICTORY_JOIN_PARTS) 2026-11-26T16:05:08.294656Z INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 44.1 ms (the card about 72% busy by this count), 42.4 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submitting thread stood waiting for the card 8.4 ms 2026-11-26T16:05:08.294713Z INFO victory_gpu::shadow: shader writes looked for on the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 262.0 MB in 453 ranges of title buffers' copies (240.2 MB snapshotted), of them 225.9 MB in copies of 1 MiB or more (VICTORY_CARD_BUFFERS_MIN_MB=1 would have the card look there) 2026-11-26T16:05:08.294771Z INFO victory_gpu::host: preparing per frame, the submitting thread: 5.4 ms asking the write watch (0.8 of them finding what to ask), 9.6 putting the title's bytes under flights' writes, 49.3 in the lists' steps (refreshes 37.5 in 42 flushes of 8764, 7357 of them known to copy nothing, 8243 on several threads, 3.3 one at a time in 280 before shader writes; copies and fills 4.1, the refreshes before copies among them), 19.7 snapshots, 8.6 for copies in the card's memory, 2.9 sending the lists (VICTORY_LIGHT_REFRESH is on); ahead of these 22.3 waiting for the submission lock, 14.7 planning steps done on the card, 8.3 waiting for flights, 10.1 the heaps' records and what is swept; at the end 19.2 waiting for the heaps' records; asked early by a thread of its own 0 pieces of 2 MiB, 0.0 ms (VICTORY_ASK_EARLY) 2026-11-26T16:05:08.294829Z INFO victory_gpu::host: asking about title memory per frame, all threads: 267 kernel askings over 1453 MB (4.9 ms, 4511 pages of 4 KiB found written, 319 askings refused); 5 questions about holes; view ranges: 600 answered by their bits, 0 by the guards whole, 203 block by block; 808 blocks made read-only, 28 opened by ourselves; 20.3 ms waiting for the guards, 10.2 ms changing protections; pages taken for the card: 0.0 MB compared, 0.0 MB of them as they were, 0.0 MB to go up in 3 runs (VICTORY_SEND_CHANGED) 2026-11-26T16:05:08.294884Z INFO victory_gpu::host: the pass over the heap's views per frame: 30.2 ms looking at slots, 5.1 their copies' spans and refreshes, 10.0 textures; the first two beside the recording (VICTORY_HEAP_PASS_ASIDE), 23.4 ms waited for at the lists' close 2026-11-26T16:05:08.294936Z INFO victory_gpu::host: our passes over copies in the card's memory per frame: 133 hash passes over 767 pieces after ranges were sent up (VICTORY_CARD_REHASH_RUNS=1 joins them: now on), 14 compare passes 2026-11-26T16:05:08.294989Z INFO victory_gpu::host: texture refreshes per frame, all threads: 6.4 ms, of them 0.0 ms waiting for a texture another thread is refreshing, 1.5 ms asking the write watch and the guards, 0.0 ms waiting for title memory to hold still (the runtime remapping it); the rest is reading, hashing and detiling 2026-11-26T16:05:08.295041Z INFO victory_gpu::host: texture refreshes that did not wait for title memory to hold still, per frame (VICTORY_TEXTURE_NO_WAIT=1): 1.7 read through the kernel, 0.0 left for the next refresh (a page was not there), 0.0 first fillings from the pages there (VICTORY_TEXTURE_FILL=0: left empty), 0.0 of them with less than was mapped (looked at again) 2026-11-26T16:05:08.295094Z INFO victory_gpu::host: title buffer copies recorded per frame: 1, of them 0 continue the one before (VICTORY_JOIN_COPIES=1 makes those one copy with it: now on) 2026-11-26T16:05:08.539740Z INFO victory_gpu::texback: texture readback landed copied=266496 bytes=262144 2026-11-26T16:05:08.885345Z INFO victory_loader::console_insn::sites: console CPU instructions that fault, a second: extrq/insertq 394; places replaced so far: 7; the busiest places: 0x7ff9dda87ff1 extrq/insertq 349, 0x7ff9dda1c8f2 extrq/insertq 45 2026-11-26T16:05:09.042805Z INFO victory_gpu::draw: a texture already on the card is brought up to date although the card has no room for new ones so_far=592000 slot=584210```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 16:12:24 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-26 19:18 UTC · original

The log sums landing and list translation across worker threads. Those totals are different from elapsed time per frame, and 592,000 texture slots is a running total. The current main includes the placed-view fix (#27) and smaller texture-pool placement on NVIDIA (#45). Please try that build with -Console series-s -Windowed from the same checkpoint and note process memory, DXGI usage and budget, landing per frame, and time waiting in present before and after the stutters start.

The NVIDIA preset uses six landing workers even on the 12400F. For a focused A/B, run once with the defaults and once with -More @{VICTORY_LAND_THREADS='3'}, keeping the save, cache and route the same.

**@⁠TaynanGT** on GitHub · 2026-11-26 19:18 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/36#issuecomment-7201426410) The log sums landing and list translation across worker threads. Those totals are different from elapsed time per frame, and 592,000 texture slots is a running total. The current main includes the placed-view fix (#27) and smaller texture-pool placement on NVIDIA (#45). Please try that build with `-Console series-s -Windowed` from the same checkpoint and note process memory, DXGI usage and budget, `landing per frame`, and time waiting in `present` before and after the stutters start. The NVIDIA preset uses six landing workers even on the 12400F. For a focused A/B, run once with the defaults and once with `-More @{VICTORY_LAND_THREADS='3'}`, keeping the save, cache and route the same.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-26 19:23 UTC · original

The launcher change in #50 is on main now. On NVIDIA Series S it prints the requested worker counts after -More overrides, alongside the updated RAM guidance. That gives us the actual settings to compare on the 8 GB card. The remaining check is whether reducing copy-back workers changes frame times or memory behaviour in the same scene.

**@⁠TaynanGT** on GitHub · 2026-11-26 19:23 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/36#issuecomment-7201539527) The launcher change in #50 is on `main` now. On NVIDIA Series S it prints the requested worker counts after `-More` overrides, alongside the updated RAM guidance. That gives us the actual settings to compare on the 8 GB card. The remaining check is whether reducing copy-back workers changes frame times or memory behaviour in the same scene.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-26 20:13 UTC · original

The buffer log now explains the limit more accurately (#59). On the 8 GB card, try a fresh Series S run at the same checkpoint with only -More @{VICTORY_CARD_BUFFERS_MIN_MB='1'} changed. Keep the other worker settings and cache the same. The first check is whether GPU copies rise and CPU-compared MB fall. Then compare frame times, private RAM, working set and DXGI headroom near minute 2 and again when the slowdown starts. The allocation cap still applies, so the original 225.9 MB cannot tell us how much will move to the GPU.

**@⁠TaynanGT** on GitHub · 2026-11-26 20:13 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/36#issuecomment-7202440793) The buffer log now explains the limit more accurately (#59). On the 8 GB card, try a fresh Series S run at the same checkpoint with only `-More @{VICTORY_CARD_BUFFERS_MIN_MB='1'}` changed. Keep the other worker settings and cache the same. The first check is whether GPU copies rise and CPU-compared MB fall. Then compare frame times, private RAM, working set and DXGI headroom near minute 2 and again when the slowdown starts. The allocation cap still applies, so the original 225.9 MB cannot tell us how much will move to the GPU.
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/TaynanGT--Vice-Tay#36
No description provided.