Repository navigation
Diagnostics: missing textures as checkerboards, PIX captures from a run, slow driver compiles named, per-stage clean-up switch - #687
Open
abilliontokens wants to merge 8 commits into
Conversation
… frame times - scripts/bench.ps1 starts the diagnostics build, drives the menus into the world from what each captured frame shows (the legal notices' Next, the terms' two boxes and Confirm are recognised by their layout; A on every other screen), measures a window of world frames and writes summary.md / summary.json beside the log and periodic frames. Each run starts from a copy of the data folder, so runs load the same save; -FirstBoot starts from no saves at all, -Compare tabulates runs, -From summarises an earlier run again. - VICTORY_KEYS_FILE: keys appended to a file as lines are pressed in order, 0.6 s apart (the title's menus drop quicker presses), focus or not. - VICTORY_CAPTURE: a file named `now` in the folder saves the next frame. - Checked on an RTX 5060 Ti: from an empty data folder to the world in 98 s with no input by hand.
- `powershell -File` passes every argument as a string, so a hashtable literal could not reach the script from cmd or another shell.
- On an RTX 5060 Ti (driver 621.24) the second launch still made 163 pipelines; 24 of them took the driver 2-128 s each (313 s of worker time), 20 of them compute. Their draws stay dropped all that while and each holds a pipeline worker, which the frame line only shows as a 'being made' count. The log now names each one with its time.
…d stages - `cs,ms,vs,ps,gs`: only programs of those stages get the module passes; unset, every stage as before. The shader cache keys on it. - A bisect of a clean-up fault in pixel shaders (fxceless#310) otherwise makes every compute pipeline again, and on an RTX 5060 Ti some of those take the driver 2-128 s each.
- A copy of the build outside target\ lets a run go on while the tree builds, or two builds be compared; the process is found by that build's own name.
… run, slow compiles in bench summaries - VICTORY_DEBUG_NULL_VIEWS=1: 2D texture slots that would read zeros read a magenta checkerboard where the title made a view the host has no texture for, a cyan one where there is no view; black left is the title's own. - VICTORY_PIX=<dir>: the installed PIX's WinPixGpuCapturer.dll is loaded before the host device; a file named `capture` in the folder saves the next frames as frame-<n>.wpix. - scripts/bench.ps1 -PixAt <s>: a PIX capture that many seconds into the world; summaries total the driver compiles of 2 s or more. - README: the new switches, VICTORY_SHADER_OPT(_STAGES), and what the debug layer needs installed.
… a -Victory build by file - With PIX's capturer loaded the runtime rejected the saved library, and the run then saved PIX's own (848 bytes) over it: a 426 MB library was lost and the next run made every pipeline again. Under VICTORY_PIX no library is opened or saved. - scripts/bench.ps1: with -Victory the summary's build is that file and its time, not the tree's HEAD.
- `waits_end_on_ticks_and_count_frames` failed with flips 7 ticks apart ([21, 28, 35, 42]) while a shader translation ran beside `cargo test`: a loaded Windows machine wakes a 5 ms sleep up to a timer period late, past the next tick. At 50 ms it passed under 8 busy threads and a running title.
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Debugging aids for the problems reported most in this repo: black or missing surfaces, mosaic blocks from the shader clean-up passes (#310), long first-launch stalls, and refused pipelines. All are
diagnostics-only except the slow-compile log line and the cache-key byte. Stacked on #617 (scripts/bench.ps1); the first two commits here are #617's.What each one is for
VICTORY_DEBUG_NULL_VIEWS=1VICTORY_PIX=<dir>WinPixGpuCapturer.dllbefore the host device. A file namedcaptureput in the folder saves the next frame(s) asframe-<n>.wpix. PIX then shows each draw's DXIL, views, samplers and targets, plus pixel history.VICTORY_PIXthe library is neither opened nor saved.CS_RaytracingResolvevariants. The frame line showed only a "being made" count.VICTORY_SHADER_OPT_STAGES=ps,ms,...VICTORY_SHADER_OPT's module passes to the named stages; part of the shader cache key. Bisecting #310 in pixel shaders then doesn't remake every compute pipeline (see the line above).scripts/bench.ps1 -PixAt <s>scripts/bench.ps1 -Victory <exe>-Victory, the summary names the build by file and time.frame::tests::waits_end_on_ticks_and_count_framescargo test, the flips came out 7 ticks apart ([21, 28, 35, 42]). At 50 ms it passes under 8 busy threads and a running title.README documents the switches, including that
VICTORY_D3D12_DEBUG=1needs Windows' Graphics Tools (Add-WindowsCapability -Online -Name Tools.Graphics.DirectX~~~~0.0.1.0). Without them, the debug layer quietly does nothing.Checked
RTX 5060 Ti 16 GB, driver 621.24, Windows 11 26200, PIX 2611.19:
VICTORY_PIX: the capturer loaded, andframe-4305.wpix(2.1 GB) was written at the asked-for moment. The library-wipe guard was written after that run showed the problem.VICTORY_DEBUG_NULL_VIEWS=1: the stand-in textures were made and used by the view paths (logged on first use). In the prologue cell, no magenta or cyan pixels reached the screen in any captured frame. So the black jumpsuit there is not a missing 2D texture; it is light or a dropped pass.cargo clippy --workspace --all-targets --all-features -- -D warnings: clean.--all-features: fails only on the pre-existingplaced_filler_twinswarning, as main does (GPU: keep clippy green without the diagnostics feature #491 / Keep clippy green without the diagnostics feature #530).cargo test -p victory-gpu --lib113 passed;-p victory-shader2 new tests (stage switch parsing) pass.cargo xtask policy: ok.Not checked:
AI-assisted (Claude Code). Runs and checks done on the machine above.