Three opt-in levers for the layer's own frame time: VICTORY_FILL_HOT, VICTORY_SHADOW_CACHE, VICTORY_BURY_ASIDE (all off by default) #1221
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1224"
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?
Imported from fxceless/victory-fork. Originally posted by Steenax6 on 2026-11-26T00:34:07Z.
What
Three small levers from a larger piece of work in Steenax6/VIctory-NVID (2e21055, which took the layer's submit thread from about 195 to about 47 ms a frame on an RTX 4070 Ti). Each is one commit, each is off by default and does nothing without its switch.
VICTORY_FILL_HOT=1: only reads of the 64 KiB a flight changed under a fill wait for flights. Today the first such fill makes every later read wait (oneWAITflag). In our tree two fills a frame waited 54 ms.VICTORY_SHADOW_CACHE=1: recording threads remember which host copy a title address range has; the buffer table becomes a read/write lock, read shared only with the switch on. In our tree the table's mutex cost 32 ms a frame of the recording threads.VICTORY_BURY_ASIDE=1: host objects that waited for a flight are released off the landing thread. In our tree 0.9 + 2 ms a frame of the relay thread.What this is not
It is not the 195 -> 47 ms. Most of that came from things this tree has since built its own way (
VICTORY_INDIRECT_GATHER,VICTORY_COPY_PLAIN,VICTORY_CARD_HASH_WIDE,VICTORY_LIGHT_REFRESH,cardmeter.rs) or from changes that sit on our rewritten watch journal and descriptor locking and cannot be brought over in isolation (4 KiB tracking and refresh in parts, striped slot locks, the fine card compare). I left those out rather than port them on guesses about lifetimes. If one of them is of interest, say which and I will look at it against this tree.What I can and cannot say for this tree
4aa6e8c: both clippy runs of the CI give exactly the warningsmaingives, none new.cargo test --workspace --locked: all suites pass exceptxtaskrepository_passes_policy, which objects to two files underdiagnostics/that are onmain.main(burybyte for byte; the shadow table exclusive on every lookup, as now).🤖 Generated with Claude Code
Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-26T01:39:20Z.
I tried
VICTORY_SHADOW_CACHEon the RX 7900 XT withFILL_HOTandBURY_ASIDEboth off. Four pairs in the first room gave 515 presents in 77.99 s (6.60 FPS) off and 508 in 76.86 s (6.61 FPS) on. The enabled blocks counted 106.7 million cache hits; the four differences were +0.48, −0.08, −0.43 and +0.06 FPS. A low-priority build overlapped the last eight seconds of the fourth pair. I don't see a consistent change in this scene on my machine. Build and methodImported from fxceless/victory-fork. Originally posted by Garu667 on 2026-11-26T10:48:07Z.
Data point for
VICTORY_FILL_HOT(same idea, independently written here before we found this PR): RTX 3080,f6a09d3+ #799's programs running, boat mission. The block caught is the 2 KiB at0xdc07eab00(as in #1205 / #1256). Only 1 piece of 64 KiB caught in 3 min; submit thread's waits on the card 24.3 → 10.9 ms/frame, world fps 8.6 → 9.6. Note #1205: the first stale fill is visible (the café oval), so this pairs well with making that one block wait from the start.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.