monitor: fix frame interval parsing and add world-entry heuristic #261
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!261
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-261"
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?
@Adika713 on GitHub · 2026-11-26 14:09 UTC · original
Adika713:fix/monitor-frame-stats-v2→rx9070xt· +588 −50 · 5 files · 3 commits · draft## What and why
The low-memory monitored test script (
_agent_reports/test-story-low-memory.ps1) needs to reliably capture frame cadence from diagnostics logs and avoid claiming world entry from black screenshots. PR #261 fixed the original ANSI parsing bug; this update aligns it with the newvictory_gpu::frame interval_us=...diagnostics log and tightens the heuristic.What is in it
interval_usframe-interval diagnostics logs as presented-frame samples (counts toward frame stats/cadence).frame presentedfallback.world_entry_candidate+world_entry_reason: sustained presentation/intervals plus non-black screenshot signal. Explicitly labeled heuristic, not proof.Tested
Hardware: Windows 11, AMD RX 6950 XT, Ryzen 5 3600, 32 GB RAM. No game run was performed for this update; parser was validated against existing logs.
Commands and results:
Not tested
AI use
Prepared with AI assistance (OpenCode, gpt-5.4) on behalf of @Adika713. I reviewed the diff and ran the parser checks above.
@adrianmjim on GitHub · 2026-11-26 22:43 UTC · original
Checked by reading the code on rx9070xt
cd8dfc0(head5bda0c8). I did not build or run it.81ebb7bit adds one file,_agent_reports/test-story-low-memory.ps1. Those two commits apply tocd8dfc0cleanly. A plain merge of the branch conflicts incrates/victory-gpu/src/ambient.rs,host.rsandpipeline/make.rs, so it needs a rebase onto rx9070xt.4eb6cfd.frame.rs,queue.rsandxmem.rsare unchanged there, #272 and #297 are still open, andmainis still not in a-publier. So the points below hold on4eb6cfdtoo. The two script commits also merge cleanly onto4eb6cfd.interval_us. Oncd8dfc0the "frame interval" log iscrates/victory-gpu/src/frame.rs:85. It is logged fromset_interval, when the title sets its rate, withinterval=as a Duration and nointerval_usfield.interval_uscomes only from #272 (crates/victory-gpu/src/queue.rs:1022at3c18705), as a debug line behindcfg(feature = "diagnostics"). So the script needs #272 and a diagnostics build. The PR body names the log but not #272; it should link or depend on it."frame presented"atcrates/victory-gpu/src/queue.rs:967. That line is only logged when the frame count is a power of two (queue.rs:947), so a 5000-frame run gives 13 lines. Line 229 needs at least 100 presented lines and 100 intervals. Oncd8dfc0that meansworld_entry_candidateis always False, with reasoninsufficient_present_samples(ornoif no frame was logged).e" inside a double-quoted string. Windows PowerShell 5.1 has no "e" escape and reads it as a plaine. The regex then becomese[[0-9;]*m, which deletes "em" pairs:memory allocation ofcomes out asmory allocation of. The syntax check in the PR body runspowershell(5.1), and a parse check does not catch this.[char]27or\x1b(as on line 186) works on both versions.VICTORY_MEMORY_LOG_SECSand thevictory::memorylog target are not oncd8dfc0(git grepfinds nothing). They are onmain(crates/victory-hle/src/modules/xmem.rs:1635,1724at4f62c2a), which a-publier does not contain.VICTORY_LAZY_PHYSICALandVICTORY_FILE_PHYSICALcome from #297 (crates/victory-hle/src/modules/xmem.rs:719,727atb82a5db). Oncd8dfc0these four settings do nothing.frame-<nnnn>s.png, but the summary line names itshot_<n>s.png. The summary therefore names files that do not exist.Not checked: running the script, or the parser against a log from
cd8dfc0.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.