Frame generation needs VRAM headroom on 12 GB cards when started from scripts/play-foxhound.ps1 (or victory run + VICTORY_FRAMEGEN=1) #106
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#106
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
What happens
On a 12 GB card, starting the game with frame generation from the script path does not hold back card
memory, so Streamline reports
Exceeded VRAM budget, DLSS upscaling starts failing and no generated frameis actually shown:
The GUI launcher holds a fifth of the budget back when frame generation is on (README, "What is known to be
wrong"), but
scripts/play-foxhound.ps1 -FrameGenonly setsVICTORY_FRAMEGEN=1; likewise a manualvictory run ... --executewithVICTORY_FRAMEGEN=1. Those users hit the full system budget and the symptomabove. It is not obvious from the README that the script path needs the budget switch too.
Reproduce
scripts.ps1 -Exe "<exe>" -Dlss balanced -FrameGen(or the same switches through
victory run), noVICTORY_VRAM_BUDGET_MBset.0 frames shown by it; rendered fps in a ~6k-draw scene ~19-20.Fix I tested
With
VICTORY_VRAM_BUDGET_MB=9000(about 1.4 GB below the reported 10446 MB line):鈫?exactly 2 frames shown per rendered one, 0 out-of-VRAM warnings, game directory untouched.
Rendered fps median 20.5 in heavy scenes (~6.1k draws), shown 鈮?1; lighter scenes rendered ~28 (shown ~56).
Proposed change
Attached patch adds a
-VramBudgetMBparameter toscripts/play-foxhound.ps1and, when-FrameGenis on andthe caller did not pass one, sets
VICTORY_VRAM_BUDGET_MB=9000before the run (the same "hold a fifth back"the launcher does, made explicit for 12 GB cards). A better long-term fix could be to reserve inside
victory.exewhenVICTORY_FRAMEGEN=1is seen, so every entry point behaves the same.Patch:
foxhound-play-foxhound-vram-budget.patch(applies cleanly to7281175;git apply --checkpasses).Happy to adjust the default (e.g.
0.8 * system budgetinstead of 9000) or move it into the layer if you prefer.Related: #100 (frame generation stops working after some time on an 8 GB laptop) may be the same class of
VRAM pressure; this report is the explicit 12 GB + script path.
@exithious on GitHub · 2026-11-30 13:29 UTC · original
Can you tell me how i can fox this exactly? On my 5070, there are no frame gens as you said but the gameplay itself is smooth with minor stutters(better than victory)
@horizonlullaby on GitHub · 2026-11-30 13:35 UTC · original
Thanks for testing it on the 5070 — and you're right that "no frame generation" is what it looks like from the in-game counter. Two things are probably happening; both are fixable.
1. The FPS in the window title is rendered frames, not shown frames.
With DLSS FG on, the layer still renders (say) 24 fps and Streamline shows ~48 — the title bar keeps counting the rendered ones. The place to see that it is actually generating is the log:
If that says
0 frames shown by it, FG is not producing frames — continue below.2. On a 12 GB card, FG only works while there is VRAM left.
In our RTX 5070 12 GB runs the exact symptom was: FG "on", game playable, but
i.e. DLSS/FG silently give up and the leftover VRAM churn is what makes the small stutters. The GUI launcher holds a fifth of the card's budget back for exactly this; the script path did not, which is what #106 / PR #107 are about.
What to try, in order:
Which path are you using? GUI
Foxhound.exe(it reserves budget when Frame Generation is On) orscripts/play-foxhound.ps1 -FrameGen(no reserve — PR #107 adds it). If you are on the script, either take the PR or set the budget yourself before the run:(in our measurements 9000 was still too high after the session filled up; 7500 left room for FG.)
Close other GPU users: Wallpaper Engine, browsers (Edge/Chrome, WebView apps), QQ/Quark/Steam++/overlays. On our machine the game alone was at ~10 GB and DWM at ~6 GB, leaving 237 MB free — FG has nowhere to put its frames.
Check HAGS: Settings → System → Display → Graphics → Change default graphics settings → Hardware-accelerated GPU scheduling must be On (needs a reboot). FG requires it.
Keep the game window focused: FG pauses while the window is not in the foreground; overlays (Discord, RTSS, OBS, GeForce overlay) can also disable it.
Stutters: after the VRAM fix, remaining hitches are usually
VICTORY_LEVELS_ON_DEMAND=1(loads mip levels on demand) and/or a 30 fps cap (VICTORY_FRAME_INTERVAL_US=33333) help.If it still shows
0 frames shown by itafter that, could you paste the few lines aroundExceeded VRAM budget/DLSS Frame Generation:(and which launcher path you used)? That would tell whether it's the budget reserve (PR #107) or something else on your setup.For reference, on our RTX 5070 12 GB with 7500 MB budget + closed background apps:
22 presents with it on, 44 frames shown by it, no out-of-VRAM warnings, and the stutters dropped noticeably. Good to hear it already feels better than VIctory otherwise.@horizonlullaby on GitHub · 2026-11-30 15:01 UTC · original
Thanks for the time series — that is a very clean demonstration, and it changes the framing of this issue: on 8 GB even the launcher's fifth is only a start-of-run reserve, and frame generation is the first thing to starve when the texture pool fills. Your numbers (
on=19 ... shown=0from 13:53:28 on, 6,001Exceeded VRAM budgetlines) match what we see on a 12 GB card over a longer session.Our data point (RTX 5070 12 GB, 1440p, Series X, DLSS Balanced, FG 2x,
VICTORY_VRAM_BUDGET_MB=9000, ~66 minutes): DLSS/FG first works (22 presents with it on, 44 frames shown by it), then the session hitsand stays there:
out of VRAMevery frame,frames shown by it0, and the picture starts showing stale/over-bright/odd frames. Closing background GPU users and dropping the budget to 7500 MB fixed it for our runs, but we have not done hours-long sessions at 7500.So I agree #107 (script parity with the launcher) does not cover this case — it is a dynamic reservation problem, not a start-of-run one. Directions that seem worth discussing, from our side:
VICTORY_FRAMEGEN=1, cap the texture queue line/render targets to a budget that leaves a reserve that scales with the output (e.g. 0.75–0.8 × budget, orbudget - reserve_for_fg), and re-apply it after the title wins are made, not just at startup.shown=0forever) even if VRAM later frees.VICTORY_FRAMEGEN_RESERVE_MB(default from the launcher logic) plus a line in the log/F3 panel when the reserve is exhausted, so it is diagnosable without 6,000 warnings.card copies/render targetsare counted).Is this worth tracking as its own issue ("frame generation starves when the card's budget fills, launcher included"), or would you keep it under #106 / #100 / #68? Happy to test any patch on an RTX 5070 12 GB (1440p Balanced + FG 2x) and against the 8 GB Series S settings you used; we can also attach our logs if useful.
@readmet3xt-lab on GitHub · 2026-12-01 01:08 UTC · original
Hi, and thanks for the report.
This repository is public, and to keep the project safe nothing posted here may name or identify the game, or point to where copies come from. Could you please edit the following, removing:
<exe>and "the supported build" instead).Once it is edited, we clear the old revisions from the post's edit history on our side.
Technical details (GPU, settings, errors, the log with the game folder replaced) are very welcome. See the issue template for what helps. Thank you!
@horizonlullaby on GitHub · 2026-12-01 02:37 UTC · original
Done — edited the issue: the executable is now
<exe>and there is no build number left in the text. Thanks for keeping the project safe, and for the explanation about the layer-side reserve; we'll wait for the next release rather than carrying a fixed cap in the script. If it helps, we can test the reserve on an RTX 5070 12 GB (1440p, Balanced + frame generation) as soon as a build is available.