Repository navigation
Conversation
BeginQuery, EndQuery and ResolveQueryData now record into the host list: a console query heap gets a host heap on first use, of the matching type (occlusion kinds share one, timestamps their own, pipeline statistics theirs). Resolutions land in a read-back buffer the list maps once it has run and copies into title memory. Timestamps are the host GPU's clock, so they are rescaled to the title's TICKS (100 MHz) on the way out; the queue's frequency comes from GetTimestampFrequency. D3D12 has no BeginQuery for timestamps, so begin_query skips them and only EndQuery marks them, as the API requires. A heap whose kind or device cannot give a host heap keeps the previous plausible answers, marked as a shortcut.
|
I found a timestamp conversion regression at
Both raw timestamps exceeded Synthetic queries only. No game data used. AI-assisted with Codex. |
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f) on Windows 11 + NVIDIA GeForce RTX 5090 and WARP:
- Host GPU query heap backing, command list begin/end/resolve wiring, and queue integration compile cleanly and pass tests.
cargo test -p victory-gpu query::: 3/3 passed on RTX 5090, 3/3 passed on WARP.cargo test -p victory-gpu list::tests: 4/4 passed on RTX 5090.cargo clippy -p victory-gpu --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Queries run on the host GPU (resolves with timestamp scaling). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Note: this looks like a rebase/narrower redo of #2260 (mergeable=False, same feature) — suggest closing #2260 if this supersedes it. README updated consistently.
|
Automated triage for the maintainers. This pull request no longer merges cleanly into Generated by Claude Code |
|
Superseded by #3138, which is rebased onto |
Console query heaps now run on the host GPU instead of answering with constants.
What changed
BeginQuery/EndQuery/ResolveQueryDatarecord into the host list. A console heap gets a host heap on first use, of the matching type: occlusion kinds share one, timestamps their own, pipeline statistics theirs.GetTimestampFrequencyof the queue). This also fixes the review note about the frequency mismatch.BeginQueryfor timestamps:begin_queryskips them,end_querymarks them. Fixes the review note aboutBeginQueryon a timestamp heap.shortcut:comment.Tests
cargo test -p victory-gpu: 141 passed, 2 failed (dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views— both fail onmaintoo, unrelated).cargo clippy -p victory-gpu --all-targets: clean.Supersedes #2260 (same change, rebased onto current
main; I cannot force-push over the old branch, so this is a fresh head).