Windows' card side in shared 64 KiB tiles; the windows read most move to the card (with VICTORY_WINDOW_ARENA=1) #4923
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!4923
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4922"
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?
@xteral67 on GitHub · 2026-12-01 14:08 UTC · original
xteral67:hot-windows-card→main· +1399 −17 · 6 files · 10 commits · closed without mergingDepends on #4751. This branch holds #4751's commits; the new ones are the last five. Merge #4751 first.
Refs #4036
What it changes
With
VICTORY_WINDOW_ARENA=1(#4751), windows share one copy of title memory in 64 KiB tiles on the PC. Their card side was still a committed buffer per window, so overlapping windows held the same bytes on the card two or three times. The room for windows on the card (about 1 GB on a 12 GB card) was full in the first minute, and about 4.7 GB of windows were read over the bus.VICTORY_WINDOW_ARENA_CARD(on with the arena,=0as before): the card side is a reserved buffer over 64 KiB tiles of a second pool, shared by windows. The room counts only new tiles. Free tiles of the pool are weighed against the windows' cap only.loose()) and by the heap pass (heap_read()), as #4036 asks: windows read only through the heap were never counted. Once every 30 frames, up to 16 of the most-read windows without a card side move to the card, and windows on the card read at most half as much make room. Moves go through take-overs, asVICTORY_WINDOW_GROWdoes.How it was tested
VICTORY_WINDOW_ARENA_CARD=0): 51.1 ms a frame, card 45 ms at 4.3–4.7k draws;cargo test, other cards, the Series S profile, Linux.Checked for overlap
🤖 Generated with Claude Code
@gut0to on GitHub · 2026-12-01 14:27 UTC · original · reviewed
AI-assisted review; I used an AI assistant to inspect this diff.
@ -0,0 +304,4 @@STATS[3].fetch_add(1, Ordering::Relaxed);continue;}let heap = match pool.heap_for_tile(device) {@gut0to on GitHub · 2026-12-01 14:27 UTC · original
Could this rollback bookkeeping get a CPU-only test with a mix of already-shared and newly allocated tiles? On a later-tile allocation failure, this branch decrements the refs for every entry in
placedand returns tiles whose count reaches zero; a regression here could either strand tiles or free one still used by another window. The added arena test covers run coalescing, but not this lifecycle path. Factoring the refcount/rollback operations into a pure helper would make the failure and overlapping-window cases testable without D3D12. AI-assisted review; I traced the partial-allocation cleanup against the shared-window reference counts.@vi-tester-8gb on GitHub · 2026-12-01 16:16 UTC · original
A result from an 8 GB laptop card, where the arena with card tiles came out slower. One session, played by hand, so treat it as one data point.
PC: RTX 5060 Laptop GPU 8 GB (driver 621.24), i7-13620H, 32 GB RAM, Windows 11.
Build:
v2026.11.30.03+ #4207 + #4295 + #4944 (first commit only) + #4948 (with e41f18ea) + this PR (all eight commits, so #4751 included), local--release. Series S profile, DLSS Performance, DLSS FG 2x,--fps 16,VICTORY_SAMPLED_EVICT=1,VICTORY_WAIT_RESIDENT=textures,VICTORY_VRAM_BUDGET_MB=6400,VICTORY_WINDOW_ARENA=1(card tiles on by default). The log confirmed the arena was on.Compared with our previous session (same base and settings, no arena and no #4944/#4947, but with #4582 + #4881):
So the arena did what it says on the memory side (about 1 GB less shared memory), but on this card the card's own time went up, not down.
End of the session: after 21 minutes,
DXGI_ERROR_DEVICE_HUNG(0x887A0006) with nvlddmkm event 153 three times. The log saysthe submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 12392.7 msjust before. The card had ~470 MB of real headroom (6531 of ~7000 MB), so unlike our earlier hangs it wasn't at its budget. I can't say the arena caused it: we've had hangs without it, and this was one run. But it's the first hang we've seen with this much headroom, and the reserved buffers / tile mappings are the new thing in this run.Next we'll run the same build with the arena off (just #4944 + #4948) to separate the two.
Written up with help from Claude (AI); numbers are from our own logs.
@xteral67 on GitHub · 2026-12-01 17:01 UTC · original
Thanks for testing. Two notes: (1) I'll add a CPU-only test for the rollback path. (2) To split the card-time rise, a run with
VICTORY_WINDOW_ARENA=1 VICTORY_WINDOW_ARENA_CARD=0(arena on, card tiles off, windows' old card buffers) next to your arena-off run would show whether it is the shared card tiles or something else in the build; on an 8 GB card the windows' card room is about 9 % of the budget, so the tiles compete with textures there. I can't tell from here whether the hang is related.@trustno1-coder on GitHub · 2026-12-01 18:28 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed