GPU: add per-frame breakdown log, GPU list timestamp meter, and Windows driver watch #103
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!103
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/103/head"
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?
@dutch2005 on GitHub · 2026-11-25 14:10 UTC · original
feat/frame-log-card-meter-driver-watch→main· +1848 −19 · 14 files · 2 commits · closed without mergingSummary
Ports
framelog,cardmeter, anddrvwatchfromfxceless/victory-fork(a253706), adapted cleanly toBelobug/VIctory-Belobug-AMD:victory_gpu::framelog,VICTORY_FRAME_LOG=1/0, default on indiagnosticsbuilds):Submissions,PrepareUs,CardWaitUs), title-memory copies (CopyUs,CopyBytes), copy-back (CopyBackUs,CopyBackBytes),queue::execute(ExecuteUs),queue::present/Host::present/Host::present_over(PresentUs,PresentShowUs), texture staging refreshes & uploads (RefreshUs,Uploads), pipeline wait (PipelineWaitUs, plusMADE/LOADEDviapipeline::frame_log_counts()), guard faults (GuardFaults), memory remaps (Remaps,RemapUs), DirectStorage (DiskReads,DiskBytes,DiskUs), frame pacing (PaceUs), and CPU thread/process times, page faults, free physical MB, draws/dispatches, and hybrid-coreGetSystemCpuSetInformationchecks.frame timessummary (shortest / median / longest / each ms),usual framemean, and individuallong framebreakdowns (> max(1.5x, +40 ms)).victory_gpu::cardmeter,VICTORY_CARD_METER=0/1, default on indiagnosticsbuilds):ID3D12QueryHeaptimestamp pairs aroundCardEngine::record_before(Kind::Sync),CardEngine::record_after(Kind::Check), andHostListreset..close (Kind::Lists), resolved into a persistent readback ring and collected 1.5 s later without extra GPU stalls.victory_gpu::drvwatch,VICTORY_DRIVER_WATCH=0to disable) + liveHost::drain_messages()on 5-second ticks:EvtSubscribetoSystemevent-log errors fromnvlddmkm,amdkmdag,amdwddmg,igfx,igfxn, andDisplay, logging each event with layer timestamps to correlate driver resets/timeouts (amdkmdag/ TDR warnings) with active submissions.unused_variables: waitclippy warning incrates/victory-gpu/src/frame.rs.Verification
Verified locally on Windows 11 with AMD Radeon RX 6700 XT + WARP (
CARGO_TARGET_DIRisolated to worktree):cargo clippy -p victory-gpu -p victory-hle --no-deps --all-targets --lockedand--all-features: 0 warnings or errors on all new/modified files (pre-existing clippy warnings elsewhere invictory-gpu/victory-hleunchanged).cargo test -p victory-gpu --lib -- --test-threads=1: 115 passed, 1 failed, 4 ignored — all 7 new tests (cardmeter::tests,drvwatch::testsincluding liveEvtSubscribethe_system_takes_the_subscription, andframelog::testsx4) passed; the 1 failure is the pre-existing baselinewatch::tests::written_pages_are_reported_to_every_askeratwatch.rs:1005.cargo test -p victory-hle --lib -- modules::dstorage::tests: 13 passed, 0 failed.cargo xtask policy --staged:asset policy: 14 files ok.@dutch2005 on GitHub · 2026-11-25 14:49 UTC · original
Updated \eat/frame-log-card-meter-driver-watch\ with mutant-hardened unit and D3D12 tests:
ecord_seen, \on_event, and system subscription tests (3 passed; \cargo mutants\ on \drvwatch.rs: 13 caught, 0 missed).
@dutch2005 on GitHub · 2026-11-25 16:50 UTC · original
Rebased onto
upstream/main(01aadd1), updated copy-back timing (copy_back(0, ...)beforefinish_submission), and hardened tests to close missed mutants across the testable PR diff:dstorage.rs: addedlanes_count_accumulates_completed_requests_and_bytes(1/1 caught).drvwatch.rs: exercisedstart()subscription state directly inthe_system_takes_the_subscription(16/16 caught).cardmeter.rs: added end-to-endVICTORY_CARD_METER=1subprocess coverage (on(),make(),begin(),end(),collect()), initial zeroed-slot check, andPAIRS - 1slot resolution (70 caught, 6 unviable, 0 missed).framelog.rs: extractedslow_mask,parse_cpu_sets, andready_to_flushhelpers and added OS sampler +frame()lifecycle subprocess tests (117 caught, 5 unviable, 1 timeout, 1 missed:on_slow_core -> falseatframelog.rs:110, equivalent on symmetric CPUs where all cores share an efficiency class).pipeline.rs/pipeline/make.rs/frame.rs/queue.rs/texture.rs/watch.rs: tested together in the precedingcargo mutantspass (task-2407, alongside pre-fixcardmeter/drvwatch): 0 missed across those six files (watch::try_open_guarded -> truetimed out as detected).Verification (commit
d0f3034)cargo test -p victory-gpu --lib --locked -- --test-threads=1: 127 passed, 0 failed, 4 ignoredcargo test -p victory-hle --lib --locked modules::dstorage::tests: 14 passed, 0 failedcargo clippy -p victory-gpu -p victory-hle --lib --tests --locked --no-deps: 0 new warnings in touched filescargo xtask policy --staged: 4 files okPull request closed