Diagnostics: missing textures as checkerboards, PIX captures from a run, slow driver compiles named, per-stage clean-up switch #687
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!687
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-687"
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?
@abilliontokens on GitHub · 2026-11-25 04:30 UTC · original
abilliontokens:tools/debug-tooling→main· +1072 −25 · 13 files · 8 commits · openDebugging 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 (#491 / #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.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.