GPU: the floor of texture copies is a third of the card's budget at most (4 GB card: 370 to 160 ms a frame in the prologue) #1122
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/fxceless--victory-fork!1122
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1122"
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?
@Dathinel on GitHub · 2026-11-25 20:29 UTC · original
Dathinel:gpu/texture-floor-by-budget→main· +13 −2 · 1 files · 1 commits · openWhat
resource::roomalways allows 2 GiB of copies of the textures the title fills (FLOOR) before it looks at the card's budget. On a card with 4 GB of memory the whole budget is about 3.2 GB, so that floor, beside the render targets and the buffer copies, puts the card about a gigabyte over its budget from the first world frame, and the system moves card memory into the PC's.This makes the floor a third of the card's budget, at most the 2 GiB it was (+13 −2 in
crates/victory-gpu/src/resource.rs). It is read once. Cards with 6 GiB of budget or more are unchanged;VICTORY_TEXTURE_BUDGET_MBstill overrides everything, as before.Measured
RTX 3050 Laptop 4 GB (driver 610.62), Ryzen 7 7435HS, 16 GB RAM, Windows 11 26200,
--console series-s,diagbuild,085ee7c+ #1081 + #798 + #1002 + #592 + #1104, the run 253 switch set from the README. One 345 s launch each, stopped by me, same scripted keys. Last 30 frame-rate lines of each run (the prologue cutscene, about 4,400 draws a frame):main)VICTORY_TEXTURE_BUDGET_MB=1024Run D's last lines are at 1,700 to 3,200 draws, E's and F's at about 4,400, so the gap is not smaller than the table says. No device loss and no out-of-memory in any of the three; the desktop screenshot at 320 s of E and F shows the scene.
Not tested
AI-assisted (Claude Code). No game data attached.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:29 UTC · original · edited 2026-11-25 20:32 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
a360025ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@Dathinel on GitHub · 2026-11-25 21:30 UTC · original
An independent measurement of the same effect, from the thread of #1113: an RTX 3050 Ti Laptop 4 GB (i7-11800H, 16 GB) on the same tree went from a median world frame of 1,045 ms to 176 ms, and from 4,483 ms to 891 ms at the 90th percentile, with
VICTORY_TEXTURE_BUDGET_MB=1024, which is the cap this change gives a card of that size by default. Its author notes the pipeline library was cold in the first run and warm in the second, so not all of that gain is the budget's. This PR itself has not been run on that machine.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.