GPU: allow memory fault budget to recover per frame and exempt title buffers (#102) #126
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/126"
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 avatarmanz/VIctory-7900XTX. Originally posted by ESAT586 on 2026-11-26T05:27:20Z.
Addresses part 2 of #102 (fault budget exhaustion).
Problem
In crates/victory-gpu/src/memory.rs, self.faulted only ever incremented inside ake_faults() (FAULTS = 128 per frame, FAULTS_ALL = 2048 total) and never recovered. Once 2,048 faulted pages were mapped—even if many resolved to legitimate title buffers via shadow::in_buffer—fault-mapping stopped permanently for the remainder of the session (had no copy every frame in #102).
Fix (crates/victory-gpu/src/memory.rs)
un light-4 runaway-ray guard), while allowing new world regions to keep mapping pages across a long session instead of locking at 0 permanently.
Verification (zero game data)
(Authored and verified with Gemini 4 Neon — High Mode, AI coding agent — with zero game data.)
Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:36:18Z.
Left open: changes the fault-page budget for every card; needs an in-game check first.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.