Repository navigation
Conversation
|
Tested Environment: Windows 11 Pro build 26300, AMD Ryzen 7 5700X, 16 GB, NVIDIA GeForce RTX 3060 12 GB (driver 610.88), Rust 1.98.1
So on Ampere, as on your RTX 5070 Laptop and WARP, the counted call writes nothing with a zero count and stops at the GPU count otherwise. The AMD result in the description (first record written even with count 0) doesn't reproduce here, which fits a driver issue on that adapter. Profiling on or off doesn't change the outputs, and census plus timing still makes one submission. CI's commands, on the merge: both clippy runs ( One note on coverage. Not tested: title measurements; the AMD case (no AMD GPU here); no game data used. AI-assisted (Claude Code) ran the checks and drafted this comment. |
|
@fromthemoonx Thanks for the RTX 3060 control and for catching the test-coverage gap. |
|
I published the isolated #509/#595 integration against exact #509 and current #595 plus its confirmed-fence guard. It has no #387 or #562 dependency. Query heaps, readback and operation metadata stay with each recording through native completion. Held-fence reset/replay and the standalone semantic smoke passed with full GBV on AMD, RTX 5070 Laptop and WARP. There was no collection while gated, and the standard smoke retained one native submission. Both Clippy configurations and asset policy passed locally. This makes the async integration independently reviewable while preserving this standalone PR's scope. |
|
I independently recomposed the timestamp ownership work with #595's 7465030 revision, which gives repeated lists their own preludes. The standard one-native-submission smoke and held-fence reset/resubmit passed on AMD and WARP with full GBV. The new #595 repeated-prelude regression also passed on WARP. NVIDIA was absent from DXGI enumeration in this session. The composition is local and the standalone PR remains scoped to the existing census. AI-assisted using Codex. |
|
I validated repeated recording ownership against #595 7465030 with a test and reproduction. AMD Radeon Graphics and WARP both passed with the debug layer and full GPU-based validation. The normal smoke still used one native submission. In the gated test, resetting the list while its old recording was pending preserved the original operation identities and readback. With both timing flags enabled, a later batch containing the same recording at both ends counted both executions and suppressed the ambiguous spans. The distinct peer kept its span. #595 issued the same two native calls for that batch, with zero additional census calls. These timings are synthetic GPU spans. AI-assisted using Codex. |
Keep current title capture and pipeline-library diagnostics. Record census spans around the native GPU commands, collect after the original fence, and release the submission lock before capture and reporting.
|
I ran a held-native-fence control against the current census revision AI-assisted using Codex. Update after @wbkepler’s |
|
Automated triage for the maintainers. Needs work: needs the maintainer's decision. The new head ( The census itself is diagnostics-only. It is under The two open questions are still for the maintainer, and only they can settle them:
If either one is unwanted, dropping it (or changing the test to compile its fixture with the repo's own shader path) would leave a diagnostics-only change. CI: passing ( Generated by Claude Code |
|
Merged upstream Follow-up |
|
@Marvisak The repository guide is now a short enablement and output reference at Could you confirm whether the dedicated diagnostics workflow step and the ignored fixture's explicit local Rebase follow-up |
…cca4 # Conflicts: # crates/victory-gpu/src/host.rs
…d at every check (the opening video no longer cycles through old frames) The opening video decodes into a ring of three plane sets in view memory, which the title writes through another view: the guards never see a write to them, and the hash that finds the change was taken on the texture's eighth-frame turn only (HASH_EVERY). A set's use and its turn lined up about every 24 frames, so two presented frames in three showed video from up to two seconds before. Now a texture whose hash finds it changed while its guard saw no write is hashed at every check from then on, and a guarded texture's first three checks hash it whatever the turn, so such a texture is found at its second use (its memory moves from run to run; it cannot be known by address). Textures that do not change cost three hashes more each, once. The log's texture line counts the textures found so. Source: fxceless/victory-fork pull request Marvisak#701 (on an RTX 5070: the planes uploaded every frame of the video, 12.7 MB and about 4 ms of refresh a frame; 0 of 318 frames out of order, none doubled). Of the cluster it is the one that holds: Marvisak#602 hashes again only while the hash keeps finding a change, which a ring of three defeats (each set is unchanged for two checks out of three); Marvisak#489 covers linear one-layer R8 textures only; Marvisak#509/Marvisak#456 are the same as a timed "hot" window. Without a switch: a fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What this measures
In a diagnostics build,
VICTORY_GPU_CENSUS=1aggregates D3D12 completion spans by pipeline and shader hash. It reports invocation counts, work sizes, GPU spans, CPU pipeline-build time, and refusals. This complements #130's CPU and frame profiling, #279's DRED diagnostics, and #159's title-facing queries.Run the census
The
victory_gpu::censuslog target reports roughly five-second windows on completed submissions. It flushes pending data when the title thread exits or the host reports a GPU failure.Each timestamp pair marks two completion points on the direct queue. Work can overlap, and timestamp queries can affect scheduling. Use the spans to rank work for investigation and measure submission or frame time separately. Timestamp results are resolved into list-owned buffers and collected after the existing fence. The first 2,048 operations in a list can receive timestamps. Later operations, duplicate instances in a batch, and unavailable samples still contribute to call counts. The census takes precedence when both timing switches are set, so normal list batching is retained. D3D12 timing · Indirect count semantics
Synthetic reproduction
The original compute and mesh fixture records two lists and verifies reference output, direct and indirect metadata, timestamp coverage, and one native submission even with the legacy timing switch set. The single-record test passed on AMD Radeon Graphics, GeForce RTX 5070 Laptop GPU, and WARP with the debug layer and full GPU-based validation. NVIDIA and WARP passed the multi-record control. The tested AMD driver produced only the first record, including with profiling off, and also produced the first record in a separate zero-count control. Those observations apply to the synthetic fixture and driver tested.
Run the hardware test manually with Graphics Tools, Agility SDK 1.620.x x64, and a local x64 DXC:
Set
VICTORY_CENSUS_TEST_MULTI_INDIRECT=1for the three-record probe orVICTORY_CENSUS_TEST_ZERO_INDIRECT=1for the zero-count probe. Clear both timing switches for an unprofiled control. The hosted diagnostics step runs the census unit test for aggregation and work counts. The hardware test runs through the explicit manual command above.Matched title measurements
Use an authorized title setup. Match GPU and driver, title build, scene and inputs, PR stack, and cache warm-up. Use the same present-call window and identify incomplete windows or device removal. Establish a stock frame and submission baseline, then compare builds that both use the census and differ only by the optimization under test. Turn listed-frame capture, legacy timing, DRED, the debug layer, and GPU-based validation off during timed runs. Run validation separately.
Share build SHAs, adapter and driver, frame range, and aggregate rows for the expensive compute and mesh pipelines. Include hashes, calls and timed calls, work sizes or indirect limits, median, maximum and accumulated milliseconds, and refusal counts. Title performance remains unmeasured here.
Earlier validation
Updated onto
ffe310e. The Windows workflow now runs the census diagnostics unit tests explicitly, with the existing default workspace tests and both Clippy configurations retained. The focused unit command and both Clippy commands passed locally. The hardware smoke remains opt-in. The current-main single-record fixture passed on AMD, NVIDIA, and WARP with full GPU-based validation, reference output and one submission. For async composition, the pending submission must retain the recording-specific timestamp/readback allocation and operation metadata through its fence. Early reset can otherwise pair old timestamps with new metadata. This branch collects synchronously.fromthemoonx independently validated the single-record, multi-record, zero-count, and unprofiled controls on a desktop RTX 3060 with full GPU-based validation. The profiled variants used one submission. Independent result
Async census validation
The separate async composition retains queries, readback, operation metadata and shader identities as one recording generation. AMD, NVIDIA and WARP passed the held-fence reset/resubmission and replay fixture with full GPU validation. No samples were collected while the 100 ms CPU gate was held. The original smoke still produced one submission; the new test produced exactly three. The synchronous #509 head and its workflow remain independent.
Earlier upstream compatibility
bfc60cf merges main 70564ae while retaining normal submission batching and the diagnostics-specific CI step. Both strict workspace Clippy configurations and the asset policy passed. The matched synthetic census-on/off fixture passed on AMD Radeon Graphics and WARP with full GPU-based validation in a composition with the independent startup-probe sampler-heap correction fcf3f3e. It produced identical ALU, mesh and indirect outputs and one native submission in all four runs. The startup probe change is outside this PR. The workspace shader failures observed on that base also reproduced with stock lowering. Upstream fixed the CI adapter selection in ccfb029.
The exact historical #595 7465030 recording-ownership control is available separately at 6e79490. A contemporary #595 integration requires resolving the changes in main's submission implementation.
For the pathological mesh report in #71, use census windows for pipeline identity, group demand, execution spans and CPU pipeline build cost. #1723 provides primitive and pixel-invocation counters through the separate legacy timing path. Match builds, scene windows and instrumentation settings and use submission-level timing for quantitative comparisons.
AI-assisted with OpenAI Codex.