GPU: diagnostics builds log the title's asks for frame statistics #166
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/Belobug--VIctory-Belobug-AMD!166
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-166"
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?
@illuminatedfellow on GitHub · 2026-11-25 18:13 UTC · original
illuminatedfellow:gpu/frame-statistics-probe→main· +44 −3 · 1 files · 1 commits · closed without mergingWhat
One commit,
crates/victory-gpu/src/frame.rsonly, 44 lines added:0x288) still returns none: the count is set to 0 and the output is not touched.frame statistics asked for (none returned) call=… token=… kinds=… asked=… out=… frame=…statistics_return_none_and_are_counted, checksS_OK, a count of 0, an output buffer left as it was, a call with null pointers, and the counting.Why
statisticsis a stub here, upstream, in fxceless/victory-fork and in myokex/victory-amd. What its output records hold is not known, so nothing can be written there safely. Whether the title calls it at all is not known either.One diagnostics run in the world answers that:
This is meant as a small, safe first step. It does not change what the title sees.
Tested
frame::tests pass, with and without--features diagnostics. (victory-gpubuilds on Linux only with the two gates in my other PR, #165. They were applied for the test run and are not part of this branch.)cargo clippy -p victory-gpu --all-targets --target x86_64-pc-windows-msvc, with and without--all-features: nothing new. The only warning inframe.rsis the unusedwaitat line 156, which is onmaintoo.main. On a fork-only branch where clippy does not stop the job,cargo test --workspacegave:victory-gpu113 passed, 0 failed, 4 ignored (this includesframe::tests::statistics_return_none_and_are_counted), core 11, formats 24, game 2, the app 1. It then stopped at the fivexmemtests invictory-hlethat fail onmaintoo (#2, #8), so the crates after it did not run on Windows; this change does not touch them. The run ismainplus #3's clippy fix, both of my PRs, and clippy set not to stop the job.frame.rsis also touched by #52, #103 and #154 (a lint attribute, a timing hook inwaitand a test assertion). If one of them merges first, this needs at most a small rebase.Run in the game
KernelSmoker ran a diagnostics build of
91ded33for 60 seconds (their comment). Their setup was GE-Proton 10-34 / Wine 10.0 on Bazzite Linux 45 with an RTX 3090, ax86_64-pc-windows-gnubuild, natived3d12,d3d12core,dxgioverrides,VICTORY_COPY_MEMORY=1,VICTORY_SPARSE=0and--console series-x.token = frame - 4.kinds=69888(0x11100),asked=6and a non-null output buffer.frame::tests also passed there, with--features diagnostics, under Wine.This is startup and menus, under Proton on NVIDIA. Gameplay in the world, native Windows and AMD were not covered.
What this suggests, not proven:
0x11100reads as three 4-bit fields set to 1 at bits 8, 12 and 16, which could be the three event kinds (origin, vblank, flip). If so,asked=6could be two records per kind. Filling the records stays a separate change, once their layout is known.@KernelSmoker on GitHub · 2026-11-25 18:36 UTC · original
Ran the diagnostics build of PR head
91ded33(cargo build --profile diag -p victory --features diagnostics --locked --target x86_64-pc-windows-gnu, Rust 1.98.1) under GE-Proton 10-34 / Wine 10.0 on Bazzite Linux 45 (NVIDIA RTX 3090, natived3d12,d3d12core,dxgi=noverrides,VICTORY_COPY_MEMORY=1,VICTORY_SPARSE=0,--console series-x).Unit tests (Windows GNU target under Wine)
victory_gpu ... frame:: --nocapture(with--features diagnostics): 3 passed, 0 failed (statistics_return_none_and_are_counted,waits_begun_together_take_different_ticks,waits_end_on_ticks_and_count_frames).cargo check --workspace --all-targets --all-features --locked --target x86_64-pc-windows-gnu: passed with no new warnings inframe.rs.60-second diagnostics run (startup / presentation frames)
The title does call
frame::statisticsonce per frame starting atframe=5, consistently queryingtoken = frame - 4withkinds=69888(0x11100),asked=6, and a non-null output buffer (out=true). The run reached presentation frame ~6896 (lastframe presentedpower-of-two line atframe=4096; interactive in-world gameplay was not verified).Captured
frame statistics asked forlines:No game files or crash dumps are attached.
@illuminatedfellow on GitHub · 2026-11-25 19:03 UTC · original
Thank you for running it. This answers the question the PR asked: the title asks for statistics every frame from frame 5 on, about the frame four before the current one (
token = frame - 4), always withkinds=0x11100and room for 6 records, and it keeps running with none returned. I'll add your results to the description, noting they are from Proton on NVIDIA and from startup and menus, not the world.Pull request closed