Integration branch measured on an RTX 3080 Ti: copy compare, ray tracing off, GPU timing of our own passes #465
No reviewers
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!465
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/465/head"
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?
@LeonardoS11 on GitHub · 2026-11-25 01:16 UTC · original
LeonardoS11:port/xcl→main· +2288 −268 · 23 files · 22 commits · closed without mergingIntegration branch measured on an NVIDIA card, opened as a draft for discussion: it bundles other contributors' open PRs with new changes, so it is not meant to be merged as one piece. The new parts can be split into small PRs (list at the end).
What is in it
Other people's open PRs, cherry-picked unchanged with their authors (nothing to review here, only measured together): #191, #154, #175, #177, #186, #158, #194, #169.
New in this branch:
VICTORY_COPY_COMPARE=1(shadow.rs,host.rs): a refresh reads the written range and puts in / sends up only the 4 KiB pieces whose bytes changed.VICTORY_RT_OFF(apps/victory/src/rt_off.rs,pipeline.rs): the ray-tracing passes' pipelines (1,052 shaders found by name in the title's shader archive) are not built and their draws/dispatches do not run. On by default in this branch; for upstream it should be opt-in.VICTORY_GPU_TIMINGkeeps command notes without DRED (it loggedcommands=0) and times the layer's own passes asours: indirect / prelude-* / card.Host::card_backfetches the pieces of all flights settled together with one wait (VICTORY_CARD_BATCH=0: as before).VICTORY_RELAY_COPY_QUEUE=1: the relay's fetches on a copy queue of its own (off by default; no measured gain, see below).shader-info --verboseprinting the runtime's hash.Tested
diagprofile withdiagnostics.cargo test --workspace -j 10at0d86f22(everything but the last commit): 516 passed, 0 failed, 9 ignored. The last commit (e220136, the R9G9B9E5 stand-in) was built and run in the title but not through the GPU tests.main2119b0e, defaults, same save (not the still scene)VICTORY_RELAY=2 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024VICTORY_COPY_COMPARE=1, ray tracing offPer change:
VICTORY_SKIP_PIPELINES) gave the same result (269 vs 267 ms, same draw count).card_backin one fetch: waits for the card to fetch changed pieces 94.4 → 11.5 ms a frame (the two runs fetched different amounts: 25 MB and 2.2 MB).ours:61–68 ms (indirect clamp 31–35 ms in 1,930–4,475 commands, preludes 11–26 ms, card compare 13 ms), the title's indirect draws 66–68 ms in about 4,500, its dispatches 30–34 ms. WithVICTORY_INDIRECT_WINDOW=1the clamps fall from 4,475 to 1,930 a frame and their time stays at 35 ms.a803c87(textures looked at again after upload) confirmed by eye on this card: characters' models and textures load.Known defects / not tested
VICTORY_INDIRECT_CLAMP=0(#169) crashes the title while loading on this card (write to null); the clamp is needed here.main, and more so with the ray-tracing passes off.AI use
Claude Code (Claude Fable 5.2 and Claude Opus 5.5): wrote the new changes, ran the measurements and wrote this description. Run in the title by the author on the hardware above.
Proposed split
VICTORY_COPY_COMPAREalone onmain(68 lines).VICTORY_GPU_TIMINGfix +ours:timing.card_backin one fetch.VICTORY_RT_OFF, opt-in.Pull request closed