GPU: the present logs what the title presents whenever it changes #835
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!835
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-835"
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?
@KyleS98 on GitHub · 2026-11-25 09:52 UTC · original
KyleS98:diag/present-shape→main· +48 −0 · 1 files · 3 commits · openThe present now logs what the title presents, whenever that changes: the number of planes, the first plane's resources, and the format and size of the resource we show (the first plane's first resource). It's an
infoline onvictory_gpu::queue, a few lines a run, in release and diagnostics builds alike.Asked for in #798, where one RTX 4070 SUPER shows a black screen on the Series S profile while a 3090 Ti and a 5070 Ti show the world. Comparing this line between machines tells whether the title hands us something different to present.
format=-1means the first plane has no resource, or we hold no host copy of it.Tested
RTX 3090 Ti, Windows 11, diag build of this branch (
9376fd6plus this commit),--console series-s, 150 s run: the line above at frame 1, no other change in that run, no crash. The same commit on a tree with more changes logged the same single line across an 8-minute run (cutscene, cell, corridor).cargo clippy -p victory-gpuadds no warnings.🤖 Generated with Claude Code
@MamaLeVrai on GitHub · 2026-11-25 12:23 UTC · original
Test report: this PR's head (
76de854) no longer merges intomainf85101b(RX 6950 XT machine; a trial merge): conflict incrates/victory-gpu/src/queue.rs. I did not resolve it. No game data.AI-assisted (Claude Code); no game data.
@KyleS98 on GitHub · 2026-11-26 07:11 UTC · original
@DoubleD17 done in
3fd42b6:present_shapenow returns before it looks anything up unless the INFO event is enabled (tracing::enabled!), so at the default log level the present path does nothing new: no resource lookup, noGetDesc, no lock. I left the hook finding the resource itself instead of taking it from the ordinary present path, so that it stays one piece that can be removed; with the gate that second lookup only happens in runs that asked for the line.@MamaLeVrai thanks for the merge check. The branch is merged up to
main46bf535and no longer conflicts.Checked on an RTX 3090 Ti, Series S profile, 270 s from boot into the prologue with
victory_gpu::queue=info: the line is written once (frame=1 planes=2 resources=1 format=28 width=1920 height=1080), no crash, no device loss.AI-assisted (Claude Code, Claude Fable 5.2).
@DoubleD17 on GitHub · 2026-11-25 20:37 UTC · original · reviewed
Please skip
present_shapebefore it does any work when this INFO event is disabled. In873ce1b0d97d558c50c6d380428cf367f957934bthe hook runs on every Windows present, including those queued bysend_behind. The event is filtered only after the resource lookup,GetDesc, and the globalLASTmutex. Present pathhost_resourceis a stateful lookup. It takes the resource lock and refreshes last-use bookkeeping for a resolved texture, and it may create the host copy. The ordinary present paths already look up the resource. Gate the entire hook with an INFO event-enabled check for the queue target, and consider reusing the resource selected by the ordinary present path when collecting its description. This is a static finding. Frame-time impact was not measured. Resource lookup ┬╖ Last-use updateAI-assisted.
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.