Thin lists: a state call repeated right after itself is left out of the stream (VICTORY_THIN_COALESCE=1, off by default) #1438

Merged
TolkoDev merged 1 commit from upstream-pr/1438 into main 2026-11-29 08:16:57 +00:00
TolkoDev commented 2026-11-28 19:56:51 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by TolkoDev on 2026-11-28T19:56:51Z.


Why. With VICTORY_THIN=1 every call the title makes is written into the stream, also a state call that only repeats the one before it. Such a repeat changes nothing, or records the same state again.

The change. With VICTORY_THIN_COALESCE=1 (off by default) a state call is not written if the call written last is the same one, with the same words, and nothing came after it.

  • Only root tables, constants and views, the pipeline, topology, stencil reference and depth bounds. Draws, dispatches, copies, writes and waits are never left out.
  • The whole previous call is compared, header and words, so the last words of one call are not read as another.
  • The thin lists' log line now counts the calls left out per frame.

Tested. Windows 10, on main at 923e38c.

  • 4 new tests pass, among them that a draw's last words are not taken for a topology call, and that CLOSE is never left out. The 9 list::thin tests pass, one process each.
  • For victory-gpu clippy, with unused_variables, manual_checked_ops and deprecated allowed, reports what it reports on main. The full workspace checks do not pass here on main either (see #1437).

Not measured. How many calls this leaves out in the game, and any frame rate change. The translator already does little for such a repeat, so the gain may be small. Not run in the game.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5544029927 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1438). Originally posted by [TolkoDev](https://github.com/TolkoDev) on 2026-11-28T19:56:51Z. --- **Why.** With `VICTORY_THIN=1` every call the title makes is written into the stream, also a state call that only repeats the one before it. Such a repeat changes nothing, or records the same state again. **The change.** With `VICTORY_THIN_COALESCE=1` (off by default) a state call is not written if the call written last is the same one, with the same words, and nothing came after it. - Only root tables, constants and views, the pipeline, topology, stencil reference and depth bounds. Draws, dispatches, copies, writes and waits are never left out. - The whole previous call is compared, header and words, so the last words of one call are not read as another. - The thin lists' log line now counts the calls left out per frame. **Tested.** Windows 10, on `main` at 923e38c. - 4 new tests pass, among them that a draw's last words are not taken for a topology call, and that `CLOSE` is never left out. The 9 `list::thin` tests pass, one process each. - For `victory-gpu` clippy, with `unused_variables`, `manual_checked_ops` and `deprecated` allowed, reports what it reports on `main`. The full workspace checks do not pass here on `main` either (see #1437). **Not measured.** How many calls this leaves out in the game, and any frame rate change. The translator already does little for such a repeat, so the gain may be small. Not run in the game.
Lancito01 commented 2026-11-28 20:47:48 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Lancito01 on 2026-11-28T20:47:48Z.


Data point: RTX 3080, Series S mode, main 9ce3cf9e + #938, with this commit applied on top of main (the bake/here parts of the base branch aren't on main, so only last/repeats/REPEATS were taken) and VICTORY_THIN_COALESCE=1. In the prison prologue scenes the thin line reports ~35k calls/frame and "repeated state calls left out 0" every line; frame time unchanged (65.9 ms median vs 65.4 without). So on main's path the title doesn't seem to issue exact back-to-back repeats; any gain may depend on the in-order/bake path of the base branch. Unit tests pass.

AI-assisted (Claude).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7245545367 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1438#issuecomment-7245545367). Originally posted by [Lancito01](https://github.com/Lancito01) on 2026-11-28T20:47:48Z. --- Data point: RTX 3080, Series S mode, main 9ce3cf9e + #938, with this commit applied on top of main (the bake/`here` parts of the base branch aren't on main, so only `last`/`repeats`/`REPEATS` were taken) and `VICTORY_THIN_COALESCE=1`. In the prison prologue scenes the thin line reports ~35k calls/frame and **"repeated state calls left out 0"** every line; frame time unchanged (65.9 ms median vs 65.4 without). So on main's path the title doesn't seem to issue exact back-to-back repeats; any gain may depend on the in-order/bake path of the base branch. Unit tests pass. *AI-assisted (Claude).*
Sign in to join this conversation.
No reviewers
No labels
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.

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