rt: compare native ray queries with guest traversal fixtures #309
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!309
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-309"
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?
@tommiehansen on GitHub · 2026-12-03 10:54 UTC · original
tommiehansen:perf/phase2-ray-hit-parity→main· +133 −0 · 2 files · 1 commits · merged 2026-12-03 16:26 UTCProblem
Device-loss counters cannot detect mismatched candidates or incorrect committed hits between guest traversal and native RayQuery.
Implementation
Add a standalone comparator and a documented JSONL capture contract. Match rays by case and ray ID. Compare masks, hit or miss, committed instance/geometry/primitive IDs, and candidate IDs, acceptance and order. Distances are exact by default, with an explicit optional absolute tolerance. Missing, duplicate and malformed records are reported.
Source and dependencies
Upstream #262 motivates the parity work. The tool runs independently of the game and can land directly on main. A capture exporter and matched GPU traces are still required for real replay verification.
What the comparator checks
This is an offline correctness tool for the native RT stack, including #262 and #306. It cannot establish runtime parity without matched captures.
Validation and limitations
Synthetic CLI checks covered exact agreement, a distance mismatch with and without tolerance, changed candidate ordering, changed masks and hit status, duplicate keys and empty input. No actual game traces were available. The tool adds no gameplay work and provides no FPS claim.
Hardware verification
Capture matching guest traversal and native RayQuery traces on the RX 9060 XT 16 GB (native 1080p) and RX 9070 XT (native 1440p), RT enabled and frame generation off. Run the comparator using the documented JSONL contract. FPS is not an acceptance criterion for this tool.