Windows: card side given once a window is asked for in 2 or more frames, most asked first, behind VICTORY_CARD_WINDOWS_LATE #1756
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!1756
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1756"
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?
@101Leafy on GitHub · 2026-11-28 23:56 UTC · original
101Leafy:nv/card-windows-late→main· +0 −0 · 0 files · 1 commits · draftA window got its side in the card's own memory as soon as it was made, so the card room went to whichever windows came first, and many of those are only read in a single frame.
With VICTORY_CARD_WINDOWS_LATE set, a window only gets card memory once it has been asked for in 2 or more frames after the one it was made in (1 means 2 frames, another number means that many), and the ones asked for in the most frames go first. The window becomes a new copy whose CPU side is the old buffer, so slots made earlier keep reading what they read before and newer slots take the card side. Only windows held by the table alone, asked for in the last frame, never written by shaders and with no side of their own are moved.
Off by default: unset or 0 gives the card side when the window is made, as before.
7996fe7323to1d5fd8583b1d5fd8583bto9fac9b468a@trustno1-coder on GitHub · 2026-11-29 08:28 UTC · original
Thank you! An earlier version of this pull request was merged into main with its original commits and is part of v2026.11.29.01, where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.
9fac9b468atoe6be3673e7@101Leafy on GitHub · 2026-11-29 21:42 UTC · original
On hold. A desk run with VICTORY_CARD_WINDOWS_LATE=1 moved no window to the card: 0 on the card, 0 turned away, against 913 on the card in the run without it. The filter in card_late_windows wants a window that only the table holds and that was asked for in the last frame. A window read every frame is always held by a list still in the air, so none is ever due.
main already has this as
1d5fd8583b. The switch is off by default, so nothing changes unless it is set. I'm working on a fix and will post back here with a run that shows windows moving, or close this if it can't be made to work.@101Leafy on GitHub · 2026-11-30 01:18 UTC · original
The fix for the hold is in #3574: windows still held by recorded lists can move now, and a desk run put 396 windows on the card with the switch on (0 before).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.