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

Manually merged
github merged 1 commit from github-bot/gh-1438 into main 2026-11-29 08:22:08 +00:00 AGit
Owner

@⁠TolkoDev on GitHub · 2026-11-28 19:56 UTC · original
TolkoDev:pr/thin-repeats → main · +114 −2 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC

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.

**@⁠TolkoDev** on GitHub · 2026-11-28 19:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1438) `TolkoDev:pr/thin-repeats` → `main` · +114 −2 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC **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.
A root argument, pipeline, topology, stencil reference or depth bounds call written again with the same words and nothing between is not put into the stream. Draws, dispatches, copies, writes and waits are never left out. The thin lists' log line now counts the calls left out per frame, so that the share and any gain can be measured.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 20:00:32 +00:00
Author
Owner

@⁠Lancito01 on GitHub · 2026-11-28 20:47 UTC · original

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

**@⁠Lancito01** on GitHub · 2026-11-28 20:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1438#issuecomment-7245545367) 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).*
github manually merged commit 2a399362fb into main 2026-11-29 08:22:08 +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!1438
No description provided.