test: benchmark synthetic ray tracing on Windows #473
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/473"
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 LooperSalty/AnyXboxX. Originally posted by mauroalvare on 2026-11-27T01:13:12Z.
Change
Add a release benchmark for the translated 64-bit BVH node test. It reuses the shader encoder and Rust oracle from
intersect_tests.rs. Static, moving-geometry and large scattered-node fixtures use 262,144 rays on a 512 × 512 grid. Each run warms up both RT modes, captures 120 samples per mode and verifies every output dword. The Windows runner records the exact binary, adapter, build revision and samples in the shared GPU registry.Verification
Production base
4340aac1a494b9649c00e0e1ad2c6fbe6ea00e80, benchmark head542a540c65e7bad5dc11a01918bd91f1ddfd4431, Rust 1.98.1 release. Both NVIDIA runs used an RTX 5070 Ti with driver 621.40. WARP reported Microsoft Basic Render Driver. All input and output BLAKE3 hashes matched across the three runs.On the RTX, the median dispatch delta for RT on versus off was +0.0044, +0.0045 and +0.0124 ms in run B. Run A gave +0.0044, +0.0046 and +0.0124 ms. The heavy RTX frame median rose by 0.0128–0.0141 ms across both runs. Frame p95 varied more with CPU fence wait. The moving-node copy and barrier took 0.00083 ms at the RTX median. The heavy fixture peaked at 55.1 MiB in sampled process-local DXGI usage, with a process working-set peak of 139.8 MiB in RTX run A.
All three measurement runs passed. Local pytest gave
1416 passed, 491 skippedin the isolated worktree without the optional runtime builds. Ruff gaveAll checks passed!.cargo xtask policyfromthird_party/victorygaveasset policy: 292 files ok.Oracle and test data
The non-ignored tests check known hits before and after movement, p95 calculation, distinct thread groups, and the RT switch. Measured scenes use generated 16-bit and 32-bit box and triangle data. Each geometry phase and mode is verified in its own readback. The benchmark covers descriptor-backed node tests. Title BVH build/refit, traversal, lighting resolve and end-to-end frame costs require their own workloads.
Checklist
Made with AI assistance (Codex).