Shader tests: measure the emulated ray-tracing node test on the card #46
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!46
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-46"
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?
@marquezinii on GitHub · 2026-11-24 20:53 UTC · original
marquezinii:bench/bvh-node-test→main· +128 −2 · 2 files · 1 commits · opendocs/fork-ray-tracing.mdlisted the GPU cost of the emulated ray-tracing path as unmeasured. This measures the one piece that can be measured without the game: the emulatedimage_bvh64_intersect_raynode test.node_test_cost(ignored, like the other benchmarks) takes the node test's synthetic program fromintersect_tests.rs, wraps the instruction in a loop that folds each result's low bit into the ray origin so every pass depends on the one before, and dispatches 65,535 groups of 32 threads. Before timing, it checks the last result of one group againstbvh::intersectrun the same number of times, so the loop really ran. The time of a one-pass run is subtracted to drop the per-dispatch setup and copies.RTX 5070 (driver 621.40), release build, four runs (three of them on an idle card, one after rebasing on
4e17478):The nodes stay in cache (every group reads the same 32 records), so this is the test's arithmetic only. The doc now gives these numbers with a rough frame budget and says what is still unmeasured: node fetches through title memory, traversal, divergence.
One thing I ran into: compute loops are cut at 4,096 passes (
count_iteration), so past that the timing stopped growing. The benchmark stays at 4,000.cargo clippy --workspace --all-targets -- -D warnings(default and--all-features),cargo test -p victory-shader intersectandcargo xtask policypass. No game data involved.@adriaespii on GitHub · 2026-11-24 21:14 UTC · original
Independent AMD RDNA4 benchmark and test run on commit
7e2e36f:x86_64-pc-windows-msvc)cargo test --release -p victory-shader node_test_cost -- --ignored --nocapture:cargo clippy --workspace --all-targets -- -D warnings: 0 warningscargo test -p victory-shader: 210 passed, 0 failed, 3 ignoredAI use: Antigravity (Gemini 4 Neon) ran the benchmark/tests locally and wrote this report.
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.