Argument clamps in batches (VICTORY_INDIRECT_BATCH)

One pass clamps the arguments of all indirect executions between two
points where they may change; its jobs are in upload memory that is filled
while the list is recorded. The replayed frame: 2,355 clamps become 980
passes, 86.1 -> 77.7 ms; with VICTORY_INDIRECT_BATCH=2 133 passes,
84.6 -> 75.3 ms.

Replay: --batch-clamps, --only-buffers, --listing; --compare runs turn by
turn.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-24 22:10:47 -06:00
1 parent 65b4c43ec1
commit 037596241a
9 files changed
+1492 -53

No files matched your search

+4 -1
View File
@@ -56,12 +56,15 @@ with the presented one.
| switch | does |
|---|---|
| `--compare` | runs the frame unchanged first and prints the difference |
| `--compare` | runs the frame unchanged and with the experiments turn by turn, and prints the difference |
| `--skip-clamps` | no argument clamps and no barriers of their scratch buffers; draws read arguments kept from a first run |
| `--batch-clamps` / `--batch-clamps 2` | argument clamps in batches, as `VICTORY_INDIRECT_BATCH=2` / `=1` does |
| `--skip-hash-passes` | no compare/rehash passes over card buffers |
| `--no-barriers` | no unordered-access barriers |
| `--merge-barriers` | joins barrier calls with no work between them |
| `--buffers vram` / `sysmem` | all buffers in the card's / the PC's memory |
| `--only-buffers <what>` | with `--buffers`: only the buffers all of these match: `name=<text>`, `min=<bytes>`, `max=<bytes>`, `seen=No`, `Cached` or `Combined`, `id=<a>..<b>`, or `!` and one of them (repeatable) |
| `--listing 3..7` | only writes the frame's buffers and those lists' commands |
| `--one-submit` | one `ExecuteCommandLists`, with a full wait between the former ones |
| `--only 3..7` | runs these lists; of the others only barriers |
| `--no-merge` | copies of what the CPU wrote also overwrite the card's own results (below) |