Ahead: pre-allocate 64 KiB shared and card buffers on a low-priority thread (VICTORY_BUFFERS_AHEAD) #4
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/ImTaneax--VIctory-RTX3050-4gb!4
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4"
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?
@adib-cyber007 on GitHub · 2026-12-02 08:40 UTC · original
adib-cyber007:pr/7-buffers-ahead→main· +364 −1 · 4 files · 1 commits · openPort of
trustno1-coder/VIctory-NVIDIAahead.rs(GPL-3.0) — the#1 nextitem indocs/FORKS.md.Why
Creating 64 KiB title buffer copies on the frame thread takes ~0.8 ms each (
CreateCommittedResource+MakeResident), contributing to the 3–4 FPS collapse when walking into new areas. This spawns aTHREAD_PRIORITY_BELOW_NORMALworker once the first title buffer copy is requested (never duringvictory warm/CLI tools) to keep 64 KiB buffers ready.16 GB RAM / 4 GB VRAM Guardrails
residency::very_low_ram()) to 512 initial / 256 kept (16–32 MiB) instead of 4096 / 1024 (256 MiB).residency::pressured()/critical_commit().VICTORY_AHEAD_CARD_PCT(70% default) so it never steals VRAM from textures.Toggle
VICTORY_BUFFERS_AHEAD=0VICTORY_BUFFERS_AHEAD=<n>,VICTORY_BUFFERS_KEPT=<n>,VICTORY_AHEAD_CARD_PCT=<10..97>,VICTORY_AHEAD_CARD_KEEP=<n>.Verification
ahead::tests(card_keep_bounds_by_floor_and_cap,trim_idle_releases_only_excess,card_if_ready_stays_inert_without_starting_ahead_thread,retry_gate_rate_limits_failures_independently) and default +--features diagnosticsbuilds passed with zero new warnings.ahead: pre-allocate 64 KiB shared and card buffers on a low-priority …to Ahead: pre-allocate 64 KiB shared and card buffers on a low-priority thread (VICTORY_BUFFERS_AHEAD)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.