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/lobomfz--VIctory-xmem!342
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-342"
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?
@LOCKhart07 on GitHub · 2026-12-03 18:05 UTC · original
LOCKhart07:rt-all→main· +21585 −137 · 33 files · 12 commits · openThis is a utility PR: everything from #262, #274, #306, #323 and #328 in one branch that is current with main. Those five stay open for reading the changes one at a time; this one is for trying or merging the whole set without the stack. Nothing here is new beyond the two merge commits.
What is in it
VICTORY_HW_RT=1VICTORY_HW_RT_LEAN_BUILDER=1VICTORY_HW_RT_DEMOTE=1VICTORY_HW_RT_PACK=1The descriptions, measurements and limits of each are in its own PR.
How it was brought up to main
Main had moved 111 commits past the stack's base. Two files conflicted:
crates/victory-gpu/src/descriptor/host.rs,TextureQueue::scan. Main now walks only the due front of the queue and keeps counts as slots change. #306 had added a count of slots held back for want of room to the old full walk. Main's walk is kept; the held-back count runs before it and walks only the held slots.crates/victory-shader/src/lib.rs,TRANSLATOR_VERSION. Main went 13 to 19; #262 went 13 to 14 for two fixes that change output with the switches off. Both sets are in, so it is 20. Cached translations are made again once.#274 merged without conflicts. The other files merged as they were.
Checked
victory-gputests: 412 passed, 6 failed, 23 ignored. Main alone fails the same 6 (twoindirect::tests::host_list_*, fourwatch::).descriptor::tests::views_die_with_their_resourcecrashes the test binary on main too, so it was skipped in both.victory-shadertests: 426 passed, 0 failed (main: 415).== "1"and none is set inrun.conf.default,run.shor the presets.Not done
docs/SETTINGS.mdhas no rows yet forVICTORY_HW_RT,VICTORY_HW_RT_LEAN_BUILDER,VICTORY_HW_RT_DEMOTE,VICTORY_HW_RT_PACK, or the two default-on ones (VICTORY_HW_RT_REFIT,VICTORY_HW_RT_ARENA).Known from my own play on the stack before the merge
RX 9070 XT 16 GB, RADV, 2560x1440, hardware ray tracing on.
🤖 Generated with Claude Code
github-bot referenced this pull request2026-12-03 19:34:12 +00:00
@DrArroway on GitHub · 2026-12-03 21:41 UTC · original
First RDNA 2 real-play data point on the merged branch (with all four switches enabled), plus the warm-cache recompile measurement noted under "Not done".
Setup & build
AMD Radeon RX 6900 XT (1002:73bf)(RDNA 2, 16 GB VRAM), Ryzen 9 7900X (12C/24T), 62 GiB RAM, CachyOS kernel7.3.7-1-cachyos,GE-Proton11-15-x86_64, repo-patched Mesa (deps/mesa-inst) + vkd3d-proton.main(95858c5) +#342(a70bd85) merged cleanly with 0 conflicts; release build finished in58.2 swith 0 warnings.VICTORY_OUTPUT=2560x1440,VICTORY_FSR_4K=quality,VICTORY_FIDELITYFX_FRAMEGEN=1,VICTORY_FIDELITYFX_FRAMEGEN_DIRECT=1,VICTORY_UI_PLANE=3840x2160,VICTORY_HW_RT=1,VICTORY_HW_RT_LEAN_BUILDER=1,VICTORY_HW_RT_DEMOTE=1,VICTORY_HW_RT_PACK=1,VICTORY_PLACED_COPIED=1,VICTORY_PARTS_ONE_CALL=1,VICTORY_KEEP_HOST_BUFFERS=1,VICTORY_SKIP_BINK=1.Shader translation & pipeline warm after
TRANSLATOR_VERSION = 20+VICTORY_HW_RT=1./run.sh shaders VICTORY_HW_RT=1:25,694shaders cached in90 s(0unexpected failures)../run.sh warm VICTORY_HW_RT=1:94,440known,0made before (70bffa7193b5e74f), all94,440rebuilt in139 sacross 12 processes (0bad,0refused by the host; per-pipeline:2.5 msmedian,25.6 msp90,222.7 msp99,2,851 msmax — much faster than a cold330 swarm because RADV's on-disk cache still served unchanged pipelines).Play session results (
47m 06s, free play)#262):64 / 64RT programs lifted,423,857,011BLAS instances resolved, and every loss counter stayed at0for the entire 47-minute session.VICTORY_HW_RT_LEAN_BUILDER=1(#274):160,657requests kept; skipped9builds,1,635,604updates,299,635top-level builds, and75,121rehydrates;66,596copies kept (0skipped,0lost).VICTORY_HW_RT_DEMOTE=1(#323):1,760built again withoutALLOW_UPDATE,1,742compacted (5,640 MB -> 3,757 MB),17made updatable again.VICTORY_HW_RT_PACK=1(#328):242blocks marked,194emptied after5,554moves (5,595 MB),127blocks (8,128 MB) returned to the card (4updatable blocks alive =256 MB).Performance vs
main(45591b0, software RT, same 1440p + FSR4 Quality + Direct FG)n=164):24.86median /26.37avg real FPS (peak53.53), vs23.8median real FPS on our 79-minute45591b0software-RT baseline.n=380):21.27median /21.46avg real FPS, trending down to15.4FPS (14.1 mspreparing_ms) right before the crash as sweeps and paging ramped up.531tools/session-fps.shsamples):22.6median /22.5avg real FPS (7.6 msavg preparing).Long-session VRAM growth & crash at
47m 06sMatches the long-session growth already noted in the PR description — compacted BLASes accumulated steadily until card VRAM overflowed:
vram)shared)0m0 MB4,742 / 15,466 MB9,403 MB512 MB6m886 MB12,825 / 15,437 MB12,233 MB3,584 MB12m1,986 MB13,849 / 15,433 MB13,720 MB3,648 MB14m15,950 / 16,368 MB15,306 MB3,520 MB24m7,027 MB19,996 / 16,368 MB14,037 MB3,456 MB33m22,046 / 16,368 MB(peak)15,461 MB3,264 MB47m(crash)10,490 MB(20,999compacted =10,078 MB)21,587 / 16,368 MB16,860 MB3,264 MB47m 06s, texture room was pinned at92%of budget (sweeping every ~1.2 s), and the session ended in0x887A0005(host GPU device removed after 3 submissions sent ahead of 63 lists)10.8 msafter asweep(522texture host copies /10,381 KiBlet go).journalctl -krecorded the same RDNA 2 read page fault we previously saw under92%VRAM sweep pressure (#271/#239):@Kal0s-design on GitHub · 2026-12-03 21:49 UTC · original
Ran the test suites of this branch (
a70bd85) natively on Windows 11 (MSVC, D3D12) with one NVIDIA desktop card plus WARP, as a data point next to RADV under Wine. Builds were --offline --locked, and I compared against main runs on the same machine.victory-gpu --lib (
--skip descriptor::tests::views_die_with_their_resource)indirect::tests::host_list_*(two), the twopipeline::host::testslibrary loads, and the flakywatch::tests::the_rest_of_the_one_asking_has_a_number_of_its_own. No regressions.host::rtstamps::tests::the_ray_tracing_mode_stamps_every_kind_but_the_others, sits behind thediagnosticsfeature, and I couldn't build that feature offline because of missing crates, so it didn't run.victory-shader --lib
emit::size_tests::a_reused_descriptor_register_read_only_behind_its_flag. It fails the same way as on main:warp: compute_pipeline failed: The parameter is incorrect.atemit/waterfall_tests.rs:128.a_counter_texture_is_set_by_a_store_of_one_channelandmask_operations_on_a_joined_number_give_the_numberpass too.the_local_shader_cache_lifts_its_ray_queriesis ignored, and I didn't run it since it needs a local shader cache.victory-hle
xboxbvhtests pass.Did any RT test actually run on the card? Mostly no, and I think that's worth saying plainly.
hwrttests and thebuilder_lean,sendandpoolledger tests are CPU-side bookkeeping.the_card_programs_follow_the_cpu_rules_and_compileonly compiles HLSL with FXC.a_ray_query_program_validates_and_makes_a_pipeline_on_warptook the full path, not one of its early returns: dxil.dll validated the program and WARP made the compute pipeline.poolplaced-texture tests, and they ran there;host()was not None.hwrt::supported()is true. So the hardware path is available here, it just isn't exercised by the tests.Env switches
VICTORY_HW_RT=1 VICTORY_HW_RT_PACK=1 VICTORY_HW_RT_DEMOTE=1 VICTORY_HW_RT_LEAN_BUILDER=1set, victory-gpu gets one extra failure, andVICTORY_HW_RT_PACK=1alone is enough to cause it. The test ishwrt::tests::structures_are_cut_from_blocks_by_how_long_they_live, athwrt.rs:7876, withassertion left == right failed: Updatable, left: Some(Updatable), right: Some(Long). It callslived(), which readspack_on()from the environment. Usinglived_when(origin, false)in the test would make it independent of the switch.VICTORY_HW_RT_LIFT=0,rayquery_tests::a_node_test_outside_a_traversal_loop_keeps_the_software_walk_and_says_whyfails atrayquery_tests.rs:82withVICTORY_HW_RT_LIFT=0: no loop lifted, because the reason string changes.VICTORY_HW_RT=1on the shader rayquery and intersect tests changes nothing.Clippy (
-p victory-gpu -p victory-shader --all-targets, compared with main)victory-gpu/src/hwrt.rs:unneeded_wildcard_patternat 1682, onvertex_count: _, ..wrong_self_conventionat 1024, onfn to_list(&mut self)guard_runsbench.Nothing in the suites came close to a large memory commit.
AI-assisted: yes
@CorvetteCole on GitHub · 2026-12-04 01:36 UTC · original
Hardware data point for the merged branch on RDNA3, native 1440p, switches measured one at a time.
Setup
deps/mesa-inst), Linux.45591b0(main) merged with this PR's heada70bd85f— merged without conflicts.VICTORY_RENDER_SCALE=1.0),VICTORY_SHADER_OPT=63,VICTORY_WARM=0,VKD3D_UNTYPED_VEC_SSBO=1(local vkd3d-proton/dxil-spirv change that lowers byte-address SSBO loads tobuffer_load_b128; not in this repo), separate shader/victory caches per arm.drops=0on every run, same scene each time.Frame time
HW_RT=0VICTORY_HW_RT=0VICTORY_HW_RT=1HW_RT=1+VICTORY_HW_RT_LEAN_BUILDER=1HW_RT=1alone)HW_RT=1+VICTORY_HW_RT_DEMOTE=1HW_RT=1HW_RT=1+VICTORY_HW_RT_PACK=1HW_RT=1LEAN_BUILDER+DEMOTE+PACKLEAN_BUILDER=1aloneHW_RT=1run: DXR 1.1 detected,lifted 1 of 1, on the software walk: none, every hardware-RT loss counter stayed at0. VRAM went up by about 1.4 GB (10.6 → 12.0 GB).Where the time went (per-pass GPU timestamps,
HW_RT=0vsHW_RT=1+LEAN_BUILDER=1)Measured with
VICTORY_CARD_TILES(every command stamped, scaled back to the clean frame time) andVICTORY_RT_STAMPS=rt.HW_RT=0andHW_RT=1 + LEAN_BUILDER=1(5cf00dc3: 1.154 vs 1.167 ms,34fb51b8: 0.581 vs 0.593 ms,2dc364df: 0.557 vs 0.572 ms,25ebc920/48e74d16: 0.547 vs 0.549 ms). Clocks and power show no throttling (3069vs3046 MHzSCLK,255vs262 Wagainst a327 Wcap).VICTORY_HW_RT_ARENA=0vs=1onHW_RT=1 + LEAN_BUILDER=1:33.41vs33.42 ms(no frame-time difference;gpu_waitdropped21.7 → 18.0 ms).VKD3D_UNTYPED_VEC_SSBO=1patch (stock vkd3d-proton),HW_RT=1 + LEAN_BUILDER=1is even slightly faster at33.27 ms(30.06 fps) vs33.43 mswith=1.I only measured this scene at 1440p without frame generation, so I can't speak to long-session VRAM growth beyond what is already reported above.
@abomalocaris on GitHub · 2026-12-04 04:14 UTC · original
Play-test data for this bundle on an RX 9070 XT 16 GB
The description says the merged set had not been run in play, so here is what I measured.
Setup: RX 9070 XT 16 GB, Ryzen 7 9800X3D, 32 GB RAM, CachyOS (kernel 7.3.7),
proton-cachyos-slr, this repo's patched Mesa 26.3.1 and vkd3d-proton. Series X profile, 2560x1440 output with FSR 4 quality (1706x960 render), ray tracing on,VICTORY_PAGES=0,VICTORY_PLACED_COPIED=1, 30 fps (title interval),VICTORY_VRAM_BUDGET_MB=17000withVICTORY_TEXTURE_ROOM_PERCENT=87andVICTORY_TEXTURE_ROOM_CAP_PERCENT=87.Build:
mainat00aa4d3with this PR merged (plus #216 and #344 merged locally; #216's switches off unless said).Tests are scripted with a virtual gamepad on one free-roam save, so runs are comparable: "spin" turns the camera in place for 3 minutes, "run" walks and pans for 3.4 or 10 minutes. Frame rates are means over the run from
VICTORY_PRESENT_TIMING; "waited" is the sum ofslots_after_let_gofrom #216'sstats: vramline.HW_RTLEAN_BUILDERDEMOTEPACKWhat I take from it:
8fd0a70gave 24.5 fps (run) and 23.8 fps (spin) with GPU wait of 16 to 21 ms and about 14 GB on the card. I can't split that gain between #306 and whatmainmerged in between.One run of each configuration per row unless a count is given. Happy to rerun with other switches.
Written with AI assistance (Claude Code); the runs and observations are from my own machine.
github-bot referenced this pull request2026-12-04 11:01:55 +00:00
@tommiehansen on GitHub · 2026-12-04 11:20 UTC · original
@goldfishdev A quick heads-up regarding #342: this has become an important foundation for further hardware RT optimization, particularly #429 (batched RT structure invalidation) and #452 (immutable BLAS remap snapshots).
There are already encouraging gameplay results: adding #429 on top of #374 was reported to improve driving performance from roughly 15–25 to 25–40 FPS on an RX 7900 XTX. While that is a qualitative report rather than a controlled benchmark, it highlights the potential of the follow-up work. #452 also shows substantial isolated CPU and upload-cost reductions, with gameplay validation still pending.
Landing @LOCKhart07's #342 when it is ready would provide a common baseline for further development, testing and review, and substantially simplify the dependent PRs.
Would it be possible to prioritize reviewing #342, or clarify what remains before it can land?
Thanks for all the work on keeping upstream moving.
github-bot referenced this pull request2026-12-04 11:30:37 +00:00
@Luxuride on GitHub · 2026-12-04 12:02 UTC · original · edited 2026-12-05 11:24 UTC
This is superseded as a PR, but the observation stands: it is the only branch where the lean builder sits on top of the packed-structures work, so it is the one to test the whole thing on. As a PR it adds one line (
crate::builder_lean::report(frames)atcrates/victory-gpu/src/hwrt.rs:3473) and re-merges what the five smaller PRs already contain, doubling the review surface for no new code.The findings worth acting on elsewhere:
VICTORY_HW_RT(hwrt.rs:100),_REFIT(:121),_DEMOTE(:1142),_PACK(:1293),_ARENA(:1859),_LEAN_BUILDER(builder_lean.rs:45),_LIFT/_WHY(emit/mod.rs:229,246). Zero occurrences indocs/SETTINGS.mdandrun.conf.default, in a tree where every other switch is in both. And_REFIT,_ARENAand_LIFTdefault on underneath an off-by-default master switch — nobody will guess that from the tree.hwrt.rs:6667), and the only measurements are one person's RADV card.If the stack lands, the lean-builder merge is 10 minutes of work to repeat; it is not a reason to keep 21k lines open. And the question the maintainer actually has to answer first is #262's approach, not this one.
Whether it still has work of its own is the maintainer's call, not mine.
@LOCKhart07 on GitHub · 2026-12-04 14:34 UTC · original
Split as asked; this merge is no longer needed. Its one line of its own (
builder_lean::report) is inrt-3-lean. The stack is seven branches, each with only its own change, bottom at #468.From the reports here, fixed in the branch that owns each:
docs/SETTINGS.mdandrun.conf.default, with the three that default on under an off master switch said to be so;structures_are_cut_from_blocks_by_how_long_they_liveno longer readsVICTORY_HW_RT_PACK(reproduced: 85 passed and 1 failed with the switches set, 86 passed after);VICTORY_HW_RT_LIFT;unneeded_wildcard_pattern,wrong_self_convention).Thanks to everyone who ran it. The loss counters at 0 in every report are quoted in the new PR, with the caveat that a counter is not a hit-for-hit comparison.
This one can be closed.
@tommiehansen on GitHub · 2026-12-04 15:14 UTC · original
@LOCKhart07 Thanks for splitting the HWRT stack. I'm currently adapting the important #429 (RT structure invalidation), #452 (BLAS remap snapshots), and related HWRT optimization work to your new seven-branch stack starting at #468.
The integration is in progress, using
rt-7-reuseas the foundation. I'll update the relevant PRs with isolated diffs and fresh benchmark results as each change is validated, so they can be reviewed as follow-ups to your new stack rather than depending on #342.Thanks for your work on this!
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.