Add a synthetic D3D12 diagnostics overhead benchmark #1050
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!1050
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1050"
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?
@fladit123 on GitHub · 2026-11-25 17:31 UTC · original
fladit123:bench/d3d12-diagnostics→main· +745 −0 · 4 files · 1 commits · openSummary
Adds an ignored, standalone Cargo benchmark for measuring the overhead of public D3D12 diagnostics using a synthetic 512-dispatch compute workload.
The benchmark measures CPU recording, submission, fence completion, GPU queue timestamps and timestamp instrumentation overhead. Every submission verifies all 512 output words.
Related to #1021 and #437. This benchmark does not measure VIctory's per-operation marker formatting or the compact records proposed in #437.
What is included
tests/fixtures/d3d12-diagnostics.Results
Median microseconds per command list:
CPU and fence measurements use timestamp-free runs. Queue intervals use timestamped runs.
On the RTX 4060, enabling auto-breadcrumbs increased median CPU recording time by approximately 57% and median fence completion time by approximately 75%. The measured queue interval increased from 25.600 to 89.536 µs.
The RTX baseline's paired median timestamp instrumentation overhead through fence completion was +5.4 µs (IQR: −2.8 to +8.4 µs).
The incremental cost of page-fault reporting was inconclusive for this workload.
Validation
95404ff7bcbc01d64c21963d600739414ce22fd3.ca8829ff551d2a8558daae74f8aa48d0b1ff7d70.b9873b8056a8e0c52c256e1e1f01ab82a1d4a628, unchanged after the commit identity amendment.-D warnings, hardware and WARP benchmark runs, and asset-policy checks passed.Reproduction
From the repository root:
The hardware selector can be replaced with the appropriate hexadecimal vendor and device IDs, or
hardwareto select the first non-software adapter.Limitations
AI assistance
OpenAI Codex (
gpt-6.2-sol, high reasoning effort) implemented and validated the benchmark.ChatGPT (GPT-6.2) assisted with task selection, static patch review and reporting.
@fladit123 on GitHub · 2026-11-25 22:04 UTC · original
Moving this out of draft after reviewing the fixture and checking its compatibility with current main.
The standalone benchmark provides a synthetic baseline for the overhead of public D3D12 diagnostics, with explicit adapter selection, isolated diagnostic configurations, paired timestamp measurements, and output validation.
It may be useful when investigating #1021 and evaluating the diagnostic trade-offs discussed in #437. It does not measure VIctory-specific marker formatting or compact operation records, so those costs remain separate.
The original measurements and their limitations are documented in the PR description. Feedback and independent hardware measurements are welcome.
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.