Scripts: hold VRAM back for frame generation on 12 GB cards #107
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/readmet3xt-lab--foxhound!107
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-107"
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?
@horizonlullaby on GitHub · 2026-11-30 13:00 UTC · original
horizonlullaby:fix/script-framegen-vram-budget→main· +9 −1 · 1 files · 47 commits · closed without mergingThe GUI launcher holds a fifth of the card's budget back when frame generation is on;
scripts/play-foxhound.ps1 -FrameGen(andvictory runwithVICTORY_FRAMEGEN=1) did not, so on a 12 GB card Streamline reported "Exceeded VRAM budget", DLSS upscaling failed and no generated frame was shown (DLSS Frame Generation: 22 presents ..., 0 frames shown by it).This adds
-VramBudgetMB(default 0) and, when-FrameGenis on without an explicit value, setsVICTORY_VRAM_BUDGET_MB = 9000— the same reserve the launcher makes, made explicit for 12 GB cards.Measured on an RTX 5070 12 GB, 2560x1440, DLSS Balanced, FG on:
Exceeded VRAM budget+0 frames shown by it;22 presents with it on, 44 frames shown by it, no out-of-VRAM warnings; rendered median 20.5 fps in ~6.1k-draw scenes (~41 shown), ~28 rendered in lighter scenes (~56 shown).Long-term it might be better to reserve inside
victory.exewhenVICTORY_FRAMEGEN=1is seen, so every entry point behaves the same; happy to rework.Refs #106.
scripts/play-foxhound.ps1(orvictory run+VICTORY_FRAMEGEN=1) #106github-bot referenced this pull request2026-11-30 14:43:19 +00:00
scripts/play-foxhound.ps1(orvictory run+VICTORY_FRAMEGEN=1) #106scripts/play-foxhound.ps1(orvictory run+VICTORY_FRAMEGEN=1) #106@IRennie74 on GitHub · 2026-11-30 18:22 UTC · original · edited 2026-11-30 18:44 UTC
VICTORY_VRAM_BUDGET_MBis a cap ("no more than this is taken as the budget",host.rs), so a fixed 9000 only does the right thing on cards with about 11-12 GB of budget:-FrameGennow caps them at 9000 MB, which takes 5-13 GB away from textures for no reason.The GUI launcher's rule, a fifth of the card's own budget held back, scales with the card. Doing the same here, by reading the adapter's budget or by setting
VICTORY_TEXTURE_ROOM_PERCENT=80withVICTORY_FRAMEGEN_ROOM_RESERVE=1as VIctory-NVIDIA'svictory playdoes when frame generation is on, would give 12 GB cards about what you measured without hurting larger or smaller ones. As you say, doing it insidevictory.exewhenVICTORY_FRAMEGEN=1is seen would cover every entry point.Also, the reserve is set whenever
-FrameGenis passed, including on cards where DLSS frame generation cannot run (RTX 30 and older), where it only costs texture memory unless another frame generation path is used. Setting it only when a frame generation path actually starts would avoid that.@readmet3xt-lab on GitHub · 2026-12-01 01:34 UTC · original
Thanks. Closing because the 9,000 MB budget is applied whatever the card: on a 16 or 24 GB card with frame generation it would hold the layer far below what the card has.
Room for frame generation is being handled in the layer itself for the next release (a reserve taken from the card's own memory), which covers the 12 GB case this was written for.
Pull request closed