Optimization tracker: GPU time and memory on 8 GB cards #2
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
performance
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brothernog--rota#2
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?
@brothernog on GitHub · 2026-11-26 17:39 UTC · original
What is being optimized, in order, with the numbers each step is measured by. Results go in comments here; this description is kept current.
Where a frame goes now
RTX 3050 8 GB, 32 GB, 1080p, Series S profile,
diagbuild: 4.6 fps median, 218 ms a frame. Of it, 110 ms waiting for the GPU, 77 ms of CPU preparing work, 61 ms copying back. Memory is full: 31.4 of 32 GB of system memory in use, and up to 6.75 GB of video memory spilled into PC memory.So the GPU is now the larger share of the frame, and memory is the wall.
Next, in order
VICTORY_RENDER_SCALE, from edsuuu/VI-BR-PORT24f8d2e). The Series S profile renders at 0.67 of the output; 0.5 draws about 44% fewer pixels and makes the render targets smaller. Attacks the GPU time directly. Measure: 0.67 against 0.5, two runs each: median fps,gpu_wait_ms,vram_used_gb, and how the image looks (in words). Done when both are measured and the default is picked.residency.rs, from TaynanGT/Vice-Tay, same module in avatarmanz/VIctory-7900XTX). When system memory or commit runs low, it holds back texture prefetch and frees idle staging and scratch blocks. Made for PCs with up to 32 GB. Measure: peakram_used_gbandcommit_gb, lowest-10% fps (stutter). Done when the peak drops below 30 GB without the median falling.VICTORY_TEXTURE_SHORT, from LoverCatys/ruff-labb3073ea9). When the card is out of room, a texture goes up without its largest levels instead of waiting. It switches itself off under a texture budget cap, which is why it could only be tried now. Measure: peakshared_used_gb, textures waiting, lowest-10% fps. Done when the spill into PC memory drops.Done
VICTORY_TEXTURE_BUDGET_MBunset): 3.35 to 4.6 fps median. The CPU stopped re-uploading textures (preparing 143 to 77 ms).VICTORY_LEVELS_ON_DEMAND=1): worse, 2.6 fps and the GPU starved (27% busy). Dropped.How we measure
AGENTS.md, "Measure a change": build, warm after the build, run with
VICTORY_OVERLAY_CSV, summarize withscripts\overlay-summary.ps1. Two runs per setting, the same route, one setting changed at a time. GPU programs and pipelines: #1.AI-assisted.
@nullrv on GitHub · 2026-11-26 20:15 UTC · original
Layer at
bb78843, diag build, Series S profile, README settings(
VICTORY_RT_MISS=1,VICTORY_RELAY=2,VICTORY_THIN=0,VICTORY_DISPLAY_MODE=1920x1080,VICTORY_PIPELINE_BOOK=1,VICTORY_MEMORY_CARD_MB=1024,VICTORY_UPSCALER=6,VICTORY_MEMORY_MAP=0),render scale at its default. Only one card was enabled at a time, with the monitor on it.
Pipelines were warmed for each card. Two runs per card, same route each time.
Hardware
Results
All values are medians unless marked p10 or peak.
preparing_msgpu_wait_msback_mscopy_mstexture_mstexture_mbvram_used_gbshared_used_gbram_used_gb(of 32)commit_gbgpu_wait_ms110,preparing_ms77), these runs spend most oftheir time on the CPU side:
gpu_wait_msis 27–56, whilepreparing_msis 102–299.preparing_ms,texture_msandcopy_ms;gpu_wait_msis about the same. I can't tell from these numberswhether the extra texture traffic from the smaller card causes it.
AI-assisted.
@nullrv on GitHub · 2026-11-26 20:19 UTC · original
By the way, I made a comment on the other issue as well (#1).
I'm a professional software developer (although I don't have much experience with shaders and stuff, I do know some things). I have AI subscriptions and I'm happy to help with the work - let me know if there is something I should focus on researching and trying to not conflict on what you are doing.
PS: vi que seu perfil tá em português - um abraço brasileiro haha! 😄
@brothernog on GitHub · 2026-11-26 20:25 UTC · original
@nullrv: thanks for the full table, this is the most complete set of numbers here so far.
preparing_ms102-299) is abovegpu_wait_ms(27-56) matches what I see on the 3050 once host-RAM residency is off: preparing ~100 ms against GPU wait ~60 ms. So the CPU side, not the GPU, is the next limit, and I am moving the texture pass off the submitting thread up the list (item 4 in #1).texture_msis 123-180 there against 21-46 on the 8 GB card, andtexture_mbis higher, so traffic is a likely part of it. Two runs per card are not enough to say more, and you saw 4.1 to 5.5 on the same card and route; mine is noisy the same way.Progress here (RTX 3050 8 GB, 32 GB, Series S profile,
diagbuild; single or paired runs, noisy). All of it is inmainas of66b96a4:VICTORY_RENDER_SCALEis ported. At 0.5, median 5.7 fps against 4.8 at base, 10% lows 2.8 against 1.9. I now run withVICTORY_RENDER_SCALE=0.5by default.VICTORY_RESIDENCY. Two run pairs were faster and smoother with it off (5.4 vs 4.8 and 5.7 vs ~5.0 fps median). System RAM peak stayed at about 31.5 GB either way. It is now opt-in (VICTORY_RESIDENCY=1).VICTORY_TEXTURE_SHORT: tried and reverted. Textures thrashed (154 MB of uploads a frame against 25-40), it saved only 71 MB, and the device was removed with DXGI_ERROR_INVALID_CALL. A static review points at 2D-array views skipping the mip rebase. Replacement being measured now: a fixed mip drop at texture creation, with array views rebased (VICTORY_TEXTURE_DROP_MIPS, from soldsawn/victory-nvidia-8gb 637a03fa).If you want to test on your two cards:
VICTORY_RENDER_SCALE=0.5(residency is off by default now), same route, two runs each, same columns as your table. The 2060 is the interesting one (CPU busy 96% in run 1). On where to help, see my reply in #1.Valeu pela ajuda, um abraço!
This comment was AI-assisted.