RTX 5080, Series S: 12.9 -> ~25 fps in one day; what moved the frame, what did not, why avatarmanz main runs at 4 fps on NVIDIA, and where help is needed #1379
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1379
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?
@Zignixx on GitHub · 2026-11-26 19:37 UTC · original
AI-assisted (Claude Mythos 5.2 in Claude Code). Numbers and log lines only, no game data. Almost every number below is ONE run on ONE machine; where two runs with the same settings were compared they differed by about 2 ms a frame.
Summary
On an RTX 5080 the frame went from 77.7 ms to about 39 ms in the prologue (Series S profile, 720p internal, ray tracing shaders skipped, correct picture). Four changes account for nearly all of it. Each was one thing in the wrong place, not a slow algorithm. After them three things are saturated at once (the title's render thread, its recording threads, the card), and nothing we tried since has moved the frame. That is where we would like help.
Setup
trustno1-coder/VIctory-NVIDIA033be27f3+ the avatarmanz speed wave up to85d564167+ avatarmanz PRs 24, 42, 82, 96, 97, 105, 107, 108, 109, 114, 119 + fxceless PRs 907, 1044, 1210 (the recipe of fxceless/victory-fork#1268, without its DXIL optimiser PRs).--profile diag --features diagnostics),--console series-s,VICTORY_RENDER_SCALE=0.6667,VICTORY_OWN_UPSCALER=1,VICTORY_CARD_BUFFERS_MB=1536,VICTORY_DYNAMIC_SLOTS=524288, the fork'sscripts/rt_off_hashes.txtinVICTORY_SKIP_PIPELINES.What moved the frame
RELAY=1,CARD_STEPS=0,TEXTURE_NO_WAIT=0)VICTORY_CARD_BUFFERS_MIN_KB=64)RELAY=2,CARD_STEPS=1,TEXTURE_NO_WAIT=0c36971b, fxceless/victory-fork#1163, avatarmanz/VIctory-7900XTX#213 and PR 225). Our numbers for the record: per-command card time fell from 42 to 18.5 ms a frame; the eleven compute programs that took 17.5 ms together (14264103296aa43a5.5 ms,f22a76fcb967ee592.3,5cf00dc39042edaf2.1, ...; compare fxceless/victory-fork#1186) dropped out of the top forty. WithCARD_BUFFERS_MB=1536nothing was pushed out (the caveat of #1163).RELAY=2withCARD_STEPS=1andTEXTURE_NO_WAIT=0. The fork's speed defaults (CARD_STEPS=2,TEXTURE_NO_WAIT=1) gave noise faces and stretched bodies here; this combination did not. It removes the wait fxceless/victory-fork#1256 describes.pipeline::skipped_shadercompared every draw's and dispatch's shader hashes against aVec<String>of the 1,034 entries ofrt_off_hashes.txt: about 20 million string compares a frame, a sixth of all samples on the recording threads. AHashSetfixes it (one commit: https://github.com/Zignixx/VIctory-7900XTX/tree/skip-list-set, onavatarmanz/VIctory-7900XTXmain, where the function is the same).What did not move the frame (so nobody repeats it)
VICTORY_PORT_CONSTANTS=1, the 32-bit heap in place)VICTORY_GROUP_SYNC=0(no barrier waits)VICTORY_PORT_GUARD=1)VICTORY_FRAME_INTERVAL_MS=16.667)VICTORY_WIDE_SPIN=300VICTORY_ASYNC_SUBMIT=1VICTORY_PORT_CBV=1) as it isavatarmanz/VIctory-7900XTX
mainon NVIDIA: 4 fps until two things are setWe then moved the work onto
avatarmanz/VIctory-7900XTXmain(2de998014). As it is, it ran at 4 fps here: 38,000 list calls took about 1,000 ms a frame over the recording threads instead of 120 ms, and no counter showed it. This looks like the slowdown of avatarmanz/VIctory-7900XTX#213 and #221.VICTORY_VIEW_BYTES=0brings recording back to 113 ms a frame. A sampling profile had 37% of the samples of the six busiest threads indescriptor::host::view_home->shadow::exact, most of it waiting for one mutex. Every buffer view that does not start on its copy's elements gets a copy of its own there; without raw twins (a view heap capped at 1,000,000) that is most views, and only 256 such copies are kept. The picture stayed correct without them in the scenes we looked at.VICTORY_OWN_UPSCALER); otherwise it runs its FSR 4 compute passes and the card is 94% busy.With both, and once the driver's pipeline cache had settled, that tree sits at 39-40 ms in the same window as the old one. On it,
VICTORY_CARD_STEPS=2,VICTORY_ASYNC_SUBMIT=1,VICTORY_PORT_GUARD=1and combinations of them all landed within 38-40 ms (one or two runs each);CARD_STEPS=2removed the waits for flights (13 -> 0 ms) but left dark smears on a shirt.A warning about comparing runs after a re-translation: the first five runs got faster one after another in the same scene (63, 60, 45, 47, 39 ms) whatever was switched on, because the driver was still filling its pipeline cache. Alternate A/B/A before believing a difference.
Where the frame is now (timeline of four frames at 39 ms)
ExecuteCommandListsfor 38.5 of 39 ms (16 calls, about 29 submissions).Recording is
State::tables: every table that holds a constant buffer is made afresh in dynamic slots (the console takes constant buffers on 16 bytes, D3D12 on 256). About 11,000 tables are asked for a frame and about 100,000 made a second, 6.6 slots each. Counted by contents alone (the constant entries and the table's place in the title's heap left out), 49% of the tables made had been made the same before, 38% by another list of the same frame.Slot budget on the capped heap: 500,000 title slots kept, 499,999 dynamic. The pool fell to 245,759 free (peak use about 254,000) at up to 5,170 draws; the tables the title's draws bind lie at title slots 1,200,000-1,232,000, past anything kept. So fixed-offset twins for the dynamic pool do not fit without halving a pool that is already half used. See also avatarmanz/VIctory-7900XTX#35, #102, fxceless/victory-fork PR 1258, Marvisak/VIctory#1760.
Open questions, and where help would count
VICTORY_DEFER_LISTS) aims at exactly the 26 ms a recording thread spends in our calls. Results on NVIDIA?victory replayloses the device here (0x887A0005), as in avatarmanz/VIctory-7900XTX#133. Our capture holds about 2,200 buffers of 64 KiB in heaps with the cross-adapter flags, which the replay cannot place.VICTORY_PROFILE) crashed the title in two of five runs (an access violation inside the stack walk, once at a 2 ms interval and once at 10 ms).Seen and already reported by others: the dark smear on the cell's left wall (fxceless/victory-fork#1223; one capture here, with port 6 on), the noise face of the woman at the bar.
How we measure
VICTORY_GPU_TIMING=1withVICTORY_D3D12_DRED=1for card time by command;VICTORY_TIMELINEfor the chain behind a present;VICTORY_PROFILEsymbolised against the same build.Code
Branch with everything: https://github.com/Zignixx/VIctory-7900XTX/tree/nvidia-wip (
avatarmanz/VIctory-7900XTXmain2de998014+ 23 commits: the NVIDIA fork's dynamic slots on a capped heap,VICTORY_BVH_MISSand loader hooks, and ours). Everything experimental is behind a switch and off by default. It needsVICTORY_VIEW_BYTES=0andVICTORY_OWN_UPSCALER=1on NVIDIA, as above. The skip-list fix alone: https://github.com/Zignixx/VIctory-7900XTX/tree/skip-list-set.Switches of ours in that branch:
VICTORY_SKIP_WC_BACK=1(count: counting only) withVICTORY_SKIP_WC_BACK_MIN_KB(1024),VICTORY_SKIP_WC_COMPARE=1,VICTORY_PORT_CBV=1with the own-slot path on hosts without twins (VICTORY_PORT_CBV_SLOT=0,VICTORY_PORT_CBV_CARD=0turn its halves off),VICTORY_TABLE_REPEATS=1,VICTORY_SYSTEM_HEAP=1(back from mimalloc, which is a new dependency there).The goal on this machine is 60 fps at a native resolution with ray tracing. We are a long way from it and say so; this issue is the map of what is between here and there as far as we can see it.