First uploads: a refused request does not spend the window (#1496) #1677
No reviewers
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!1677
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1677"
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?
@unueberlegt on GitHub · 2026-11-28 23:21 UTC · original
unueberlegt:fix/first-upload-past-budget→main· +26 −1 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCTakes the second defect named in #1496's first comment. The first one — a past-budget card admitting first uploads on a free sum its pieces cannot honour — went to main already (
a38716d,pool::texture_widest_free); the guard this branch first carried was superseded by it and is dropped here. The branch is rebased on that commit.What it changes
The first-upload window set itself to the cap whole when it refused a past-cap request on a window rollover: the request was refused, but the window was charged the cap, and the smaller faces of the same window were starved for the window's rest. A refused request spends nothing now (
first_upload_spend): the window starts empty, and the smaller faces of the same window still go.How it was tested
victory-gpulib suite on main0338ec6+ this change: 590 passed, 0 failed, 44 ignored. New testa_refused_window_opener_starves_no_smaller_facereplays the starved window: the 256 MiB opener past the 128 MiB cap is refused, the window stays at 0, and a 12 KiB face of the same window still spends.first_upload_decision9-argument lint arrives witha38716don main, untouched here).🤖 Generated with Claude Code
@FIJI1299 on GitHub · 2026-11-29 01:06 UTC · original
12 GB Saturated Card Validation (RTX 5070 + DLSS + FG)
Tested PR commit
9b7ebf5785f7dfef7ff9bf230aa2fb93f08001ebon a saturated 12 GB RTX 5070 (~5 min play session,victory-nvidia-play-20261129-005352-21576.log).Environment
11175 MBat startup →~10400–10890 MBunder load)621.40| Windows 11 26H2 (10.0.26300) — HAGS enabled, stock settings (no OC/tweaks)Unit Test Verification
Runtime Findings (
victory-nvidia-play-20261129-005352-21576.log)ERRORlines and 0 runtime0x8007000E(only the known startup pipeline refusal oncompute 7f61193d2c0e5f22).3,768total refusalsat the whole-card budgetacross the run, peaking at858and1,063in 5s windows when free texture blocks dropped to0–6 MB.+620 MBpast budget: After crossing the budget at00:56:08(10794 MBvs10781 MB),in usecontinued rising to11373 MBagainst a10753 MBbudget (00:58:45), andtexture copiesgrew by+415 MB(3953 MB→4368 MB) while over budget.out of VRAM (39)still occurred heavily: Started at00:56:04(id=337) as usage hit the budget and continued intermittently through00:58:52(id=924).in useandfree in texture blocksappear immediately after free space hits0–6 MB:00:57:26(6 MB free,10938 MB in use,4087 MBcopies) →00:57:31(117 MB free,11190 MB in use[+252 MB],4169 MBcopies)00:58:29(0 MB free,11193 MB in use,4286 MBcopies) →00:58:34(31 MB free,11277 MB in use[+84 MB],4319 MBcopies) →00:58:45(49 MB free,11373 MB in use[+96 MB],4364 MBcopies)Selected Telemetry Timeline
in usevsbudget(Delta)allowed(5s)refused at whole-card budget(5s)00:54:052410/11175 MB(-8765 MB)40 MB279 MB00000:54:458297/10416 MB(-2119 MB)105 MB2198 MB00000:56:0810794/10781 MB(+13 MB)77 MB3953 MB2218197380id=337+)00:56:3410890/10799 MB(+91 MB)13 MB4016 MB2382240943700:57:2110912/10799 MB(+113 MB)6 MB4087 MB1479546108id=452+)00:57:2610938/10781 MB(+157 MB)6 MB4087 MB21412233339id=511+)00:57:3111190/10771 MB(+419 MB)117 MB4169 MB183713355858id=553+)00:58:2411165/10775 MB(+390 MB)3 MB4283 MB54717277336id=716+)00:58:2911193/10781 MB(+412 MB)0 MB4286 MB65145941063id=761+)00:58:3411277/10769 MB(+508 MB)31 MB4319 MB8091676577id=797+)00:58:4511373/10753 MB(+620 MB)49 MB4364 MB215118982782id=894+)00:58:5111357/10765 MB(+592 MB)45 MB4368 MB20285250id=920–924)a texture already on the card is brought up to date although the card has no room for new ones) reachedso_far=28000by00:58:53.— Compiled with Gemini
First uploads: a past-budget card takes only placements the pools guarantee (#1496)to First uploads: a refused request does not spend the window (#1496)9b7ebf5785toe29da098c8@unueberlegt on GitHub · 2026-11-29 01:38 UTC · original
Thanks — this is exactly the missing 12 GB saturated data point, and it reads well.
On the residuals:
refused at the whole-card budgetwith the peak windows you show is the line this change asked for — the old build had 0 refusals while the card grew past budget.in usestill climbed +620 MB along two paths the first-upload decision never sees. Texture copies (+415 MB while over budget) are updates of already-resident textures —room_for_first_uploadis not consulted for them. And your sharp jumps (free 0–6 MB → +252 MBin usewithin one 5 s step) point at a fresh heap committed by a non-first-upload placement path, which is your "Defect 3 / non-first-upload" reading, and I believe it.memorysnapshot across a texture pass, is what makes refusals and a climbingin usecoexist: the decision reads numbers taken before the pass, so late-pass admissions ride stale ones. Your timeline (refusals firing 00:56–00:58 whilein useclimbs) is the best repro evidence a defect-3 fix could ask for.out of VRAM (39)continuing fits the same picture: DLSS allocations are not first uploads, so once other paths have pushed the card over budget, the driver refuses them there. The guard reduces how often the card gets there; it cannot stop other paths from committing.One update: the past-budget guard itself went to main with
a38716d(pool::texture_widest_free), so this branch is rebased on that and now carries only the window fix from its first version (a refused window opener no longer spends the window for its rest). Your run effectively validated the guard that is now upstream — the remaining findings are the defect-3 territory, and they would make a strong comment on #1496 if you want them on the record there.0x8007000E, Wave64→Wave32 Failure, Unimplemented Pipeline Slots & 1M View Heap Cap #1798@futurepro62 on GitHub · 2026-11-30 03:40 UTC · original
Tested this after merge, ported onto my play build, on an RTX 5070 Ti. Two runs. I took it back out: the first run looked like what the PR promises, but the second was worse, and I can't separate the PR from where I played. Details below in case they're useful.
Numbers (MEASURED, one run each)
How to read it:
VICTORY_WATER_LIGHT=0yet to confirm.Method
main9300875plus local picks (#339, #348, #638, #1074/#1145, #1551,main's25b3b5cported, #2538's ledger ported with a timer fix, a localVICTORY_CARD_WINDOWS_PERCENT=89). This PR's one commite29da098cherry-picked on top with no conflicts (draw.rs+17/-1, bug journal);cargo test --release -p victory-gpu480 passed, 0 failed. No shader translation change.frame_timeswindows (over 20 ms median, i.e. in the world; the game's own frames before frame generation, 71.4 ms pacing cap), the texture queue's room lines, and #2538'smemory placementline every 5 s.mainwith this PR, the same route with and without it, other cards.Written with Claude Code (Claude Opus 5.5) from our own runs; I checked it before posting.
@unueberlegt on GitHub · 2026-12-01 09:27 UTC · original
Thanks — and taking it back out on an inconclusive read is exactly the right call. Two runs pointing in different directions, with the why spelled out — useful on the record either way.
What the commit changes, and what it doesn't: when one upload is refused, the rest of the queue proceeds instead of waiting behind it. It doesn't create room and doesn't touch any other path. So the observable is narrow: in seconds where a refusal actually happens, do the other uploads still get admitted.
Where your runs sat as of your write-up:
9300875is 28.11.'s main — before the whole-card guard (a38716d) and before the 29.11 changes, so none of your three runs carried the guard. That makes the cherry-pick itself the cleanest possible A/B (one commit of difference), but it also means neither run is a reference for what main does; the fix had already shipped inv2026.11.29.05, the release that was current when you wrote this.Since you wrote this:
v2026.11.30.03is out, and main has taken two changes aimed straight at your table — #4005 keeps 512 MB of the card's budget free of texture copies (your "copies with a system-memory GPU side" line), and #3850 (VICTORY_MAP_ONCE, opt-in) takes the worst frame while the world streams from 300–555 ms down to 170–210 ms (your frames-over-100-ms territory). The light-atlas wave fixes (#3871, #3896) matter for interiors, less under water.So the fair A/B today is
v2026.11.30.03against a build without the merge, same route, ~15 min each — and in 5 s windows containing a refusal, compare theadmitted/allowedcounts (the numbers you already pulled for your table) plus frames >100 ms/min. That measures the unblocking directly and doesn't depend on how saturated the route happens to be. Happy to look at the logs.Side notes: #739 and #846 had been closed the evening before your post, as stale — not fixed. If the tiles still show on a current build, a fresh note on #739 (with the
VICTORY_WATER_LIGHT=0comparison) is worth more than the reference; same for the watchdog crash — a new report rather than #846. Run 1's device removed belongs on #3563, which is open. And for the past-budget context around your copies numbers: wzl271's 16 GB data point on #1496 — residency still above physical VRAM with the guard in — is the closest relative.