Card steps: VICTORY_LATE_FILLS=1 does fills on learned pages when the card gets to their submission, instead of refusing it #1782

Manually merged
github merged 5 commits from github-bot/gh-1782 into main 2026-11-29 08:21:34 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-29 00:04 UTC · original
101Leafy:nv/late-fills → main · +438 −19 · 11 files · 5 commits · merged 2026-11-29 08:16 UTC

This needs the learned pages check from #1780, so that commit is in here too and this one should go in after it.

With learned pages a submission with a fill on one of them is refused and waits. With VICTORY_LATE_FILLS=1 those fills are put off instead: the submission goes, and a thread of ours does the fills and signals a fence once the card has run everything sent before, with the queue waiting on that fence. So they read title memory when the card gets to the submission, and the rest of it no longer waits.

Off by default, and it only does anything with VICTORY_CARD_STEPS_LEARN=1.

**@⁠101Leafy** on GitHub · 2026-11-29 00:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1782) `101Leafy:nv/late-fills` → `main` · +438 −19 · 11 files · 5 commits · merged 2026-11-29 08:16 UTC This needs the learned pages check from #1780, so that commit is in here too and this one should go in after it. With learned pages a submission with a fill on one of them is refused and waits. With VICTORY_LATE_FILLS=1 those fills are put off instead: the submission goes, and a thread of ours does the fills and signals a fence once the card has run everything sent before, with the queue waiting on that fence. So they read title memory when the card gets to the submission, and the rest of it no longer waits. Off by default, and it only does anything with VICTORY_CARD_STEPS_LEARN=1.
Without card steps a submission behind flights waits, and all its fills read
title memory after that; the console's card reads a constant buffer when the
draw runs. Taken, the submission goes at once, and its fills (on the card and
the ones left to the CPU) read the bytes then. The title writes some constant
buffers again between sending and landing (at the boat five places of 240
bytes to 32 KiB read on the card and two of 32 and 544 bytes read on the CPU,
the same ones each frame): skinned characters and the boat threw vertices off
(VICTORY_CARD_STEPS=1 and 2), worse over a cutscene and with the camera moved.

What each fill of a taken submission read (read back from the buffer between,
or the upload memory it filled) is compared with title memory at landing;
pages where they differ are learned, and a submission with any fill there
waits. At the boat: no stretching, 88 ms a frame against 94 without the check
and 95 without card steps.

Here the check is off unless VICTORY_CARD_STEPS_LEARN=1 (on by default
where it came from), and it sits after the placed-fills plan, before the
empty-plan return.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 00:10:04 +00:00
github-bot force-pushed github-bot/gh-1782 from 98d2a3463b to ed5e392f6d 2026-11-29 01:54:36 +00:00 Compare
github manually merged commit d04438d238 into main 2026-11-29 08:21:34 +00:00
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!1782
No description provided.