Windows: card side given once a window is asked for in 2 or more frames, most asked first, behind VICTORY_CARD_WINDOWS_LATE #1756

Open
github-bot wants to merge 1 commit from github-bot/gh-1756 into main AGit
Owner

@⁠101Leafy on GitHub · 2026-11-28 23:56 UTC · original
101Leafy:nv/card-windows-late → main · +0 −0 · 0 files · 1 commits · draft

A 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.

**@⁠101Leafy** on GitHub · 2026-11-28 23:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1756) `101Leafy:nv/card-windows-late` → `main` · +0 −0 · 0 files · 1 commits · draft A 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:58:42 +00:00
github-bot force-pushed github-bot/gh-1756 from 7996fe7323 to 1d5fd8583b 2026-11-29 01:48:16 +00:00 Compare
github-bot force-pushed github-bot/gh-1756 from 1d5fd8583b to 9fac9b468a 2026-11-29 07:26:51 +00:00 Compare
Author
Owner

@⁠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.

**@⁠trustno1-coder** on GitHub · 2026-11-29 08:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1756#issuecomment-7253127222) 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](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/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.
github-bot force-pushed github-bot/gh-1756 from 9fac9b468a to e6be3673e7 2026-11-29 09:17:45 +00:00 Compare
Author
Owner

@⁠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-29 21:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1756#issuecomment-7263091697) 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.
Author
Owner

@⁠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).

**@⁠101Leafy** on GitHub · 2026-11-30 01:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1756#issuecomment-7266022759) 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).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
The changes on this branch are already on the target branch. This will be an empty commit.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1756/head:github-bot/gh-1756'
git switch 'github-bot/gh-1756'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1756'
git switch 'github-bot/gh-1756'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1756'
git switch 'github-bot/gh-1756'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1756'
git switch 'main'
git merge --squash 'github-bot/gh-1756'
git switch 'main'
git merge --ff-only 'github-bot/gh-1756'
git switch 'main'
git merge 'github-bot/gh-1756'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1756
No description provided.