Default texture line (budget − max(768 MB, 5%)) lets total video memory exceed the budget on a 16 GB card; 85% stopped it. Could the headroom follow what is measured? #1963
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#1963
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?
@BBobbyD on GitHub · 2026-11-29 04:28 UTC · original
Summary
On a 16 GB card, the default texture line sits at about 95% of the live budget (
line_forinresource.rs, unchanged onmain@77df871). Render targets, DLSS, and buffers come on top, so in dense city scenes the total goes over the budget. The GPU's time per frame then jumps from a few ms to 40–57 ms and dropped draws rise. WithVICTORY_TEXTURE_ROOM_PERCENT=85, a run in denser scenes never went over, and nothing got worse. That is a single run on a different route, not a matched A/B test (one default run also stayed under budget), so a matched repeat would confirm it.Environment
Release
v2026.11.28.03, RTX 5080 16 GB (driver 610.88, live budget about 14.9–15.2 GB), Ryzen 7 7800X3D, 32 GB RAM, Series X, 1440p, DLSS Quality, frame generation off.Numbers (from the
the texture queue's roomand frame-rate lines)The two most recent runs, side by side:
When the default run went over the budget (03:21:49–03:22:25), the GPU took 47–54 ms per frame, fps fell to 7–9, and 520–820 draws per frame were dropped. Tree shadows in the city were also seen flickering in that run.
Suggestion
kept for render targets,card copies of title buffers, and the live DXGI budget.This may overlap with #1496 (WholeCard guard bypass on
main), but this release doesn't contain that code (25b3b5c), so the overflow here comes from the default line itself.@github-actions[bot] on GitHub · 2026-11-29 04:28 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@BBobbyD on GitHub · 2026-11-29 04:39 UTC · original
Logs attached: play logs for all six runs in the table (the usernames, PC name and game folder path are replaced with placeholders such as
<user>and<game-folder>). The numbers come from thethe texture queue's roomlines (in use vs budget) and the 5-second frame-rate lines.…20261128-201814-27056.log: default line…20261128-215152-21156.log: default line (stayed under budget)…20261128-222740-20352.log: default line…20261128-224958-24772.log: default line…20261129-031400-25104.log: default line; over budget at 03:21:49–03:22:25 UTC, when the GPU took 47–54 ms per frame…20261129-034105-26896.log:VICTORY_TEXTURE_ROOM_PERCENT=85; never over budgetNo crash log: none of these runs crashed, and
crashes.logdoes not exist.GPU: NVIDIA GeForce RTX 5080 16 GB, driver 610.88. Windows: Windows 11 (build 26300).
issue-1963-logs.zip
@kalberts0089-hash on GitHub · 2026-11-29 08:01 UTC · original · edited 2026-11-29 08:18 UTC
I went through the six attached logs. Every over-budget sample was admitted only because
room()subtracts the free space in texture blocks fromused. The render-target and buffer reserves were mostly 0 at those moments, so making the headroom follow them would not have caught these samples.What
room()weighscrates/victory-gpu/src/resource.rs:2021-2023(maine1f2eb6):usedis DXGICurrentUsagefor the process (host.rs:11523), so render targets that already exist are counted in it.texture_room()is the free bytes in the existing texture blocks (pool.rs:549-553). WithoutVICTORY_TEXTURE_ROOM_PERCENT, the line isline_for(resource.rs:2443-2450,2460-2462), which works out to budget - 768 MiB for budgets from 7,680 to 15,360 MiB. The logged lines (94.7-95.0 % of 14,425-15,209 MB) match that.What the logs show
I parsed all 1,177
the texture queue's roomlines:room.15157 MB in use - 1635 MB free in texture blocks + 0 + 0 = 13522 MB against a line of 14267 MB (... budget of 15035 MB): room. Without the subtraction it is 15,157 against 14,267.The 85 % run does the same thing. 55 of its 72 samples were
roomonly because of the subtraction. The difference is how far past the line usage gets, compared with the gap between the line and the budget:With the default line, the overshoot that netting free blocks allows is about as large as the whole 768 MiB reserve, or larger. At 85 % the same mechanism stays far under the budget.
Hypothesis: free block space that is counted as room but not used for new textures (fragmented, or still resting) lets the queue keep admitting textures that then need new blocks. The
widest_freecheck from #1496 (a38716d,resource.rs:2162-2166) only covers first uploads, and it is not in v2026.11.28.03 anyway.On main,
room()also takes 256 MiB of face headroom off the line (25b3b5c, also not in v2026.11.28.03). The 03:21:49 sample would still pass there: 13,522 against 14,011.Eviction near the line
vram_keep_below(host.rs:164-180, called withroom_lineatresource.rs:2802) evicts nothing whileusedis more than 2 % of the budget below the line. Up to 5 % above the line, it evicts copies that have been idle for 5 s. Beyond that, it evicts copies idle for 1.5 s. With a 15,038 MiB budget those thresholds are 13,969 and 15,021 MiB, so the faster eviction only starts at 99.9 % of the budget. At 85 % they are 83 % and 90 %.Possible directions, not tested in a game, since I can't run it here:
texture_room()onceusedis within the reserve of the budget, or cap the subtraction.@trustno1-coder on GitHub · 2026-11-30 15:38 UTC · original
Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.
If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:
victory-nvidia-play-<date>-<time>-<number>.login%LOCALAPPDATA%\victory\logs\.%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\if there is one from that run.