Shader tests: measure the emulated ray-tracing node test on the card #46
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by marquezinii on 2026-11-24T20:53:22Z.
docs/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.Imported from fxceless/victory-fork. Originally posted by adriaespii on 2026-11-24T21:14:28Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.