gpu: VICTORY_TRACE_PIPELINES logs pipelines made and put off, by frame #350
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/350"
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ShadyUnderLight on 2026-11-27T13:43:16Z.
What and why
The frame log's
native draws so farline comes every 64 presents and carries no pipeline counters, so "how many pipelines did this frame make, and how many did it put off" cannot be read from a log. That is exactly the question a crash storm raises: a compile that crashes Metal's compiler spends the rest of its frame's pipeline budget, so that frame's other new pipelines are put off. Do they ever get made?What it does
VICTORY_TRACE_PIPELINES=1logsnative pipelines so farat every present whose counters moved:frame,made(ShaderStats::pipelines),put_off(ShaderStats::put_off) andcached(ShaderStats::cached), each cumulative. A frame whose counters did not move writes nothing, so a cold first world frame and each later frame that binds new pipelines get a line while quiet frames do not.Off (the default) it costs one read of the switch per present; the title lock is taken only when it is on. Documented under "Bring-up diagnostics", with a pointer from "Reading the log" beside
VICTORY_TRACE_SHADER_CACHE.Checks
cargo test -p victory-gpu -p victory-metal -p victory-shader(native arm64): 357 / 36 / 12 / 16 / 370 / 5 passed, 0 failed.cargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings: clean.cargo xtask policy: 384 files ok.No behaviour change: nothing reads these counters.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ShadyUnderLight on 2026-11-27T14:02:49Z.
This is the instrument I used to answer the put-off/made numbers on #181 and #318, not a fix, and nobody asked for the line itself. Keeping it out of the review queue; the branch
diag/pipeline-countsstays on my fork if you ever want it.Pull request closed