diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 02:23:47 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 02:23:47 -0500 |
| commit | 5e0c04cc4c73b5ec2747f6942012c3e6af479bb6 (patch) | |
| tree | 86c9d1990c4d9543f2e20e0979ee7504bca24c78 /docs/lua-modding.md | |
| parent | 15a0d20ede20bb5f20dc5e23d2bd25d1abeeac39 (diff) | |
Indirect clamp batches stay open past dispatches that write only textures
What: a dispatch ended the open batch of clamped indirect records whether or not it
could change any argument; now only one whose shader can store to buffers does
(Translated::stores: any buffer store or atomic, raw-address stores included, or code
that does not decode), as a draw already did (State::drew). Arguments are read from
buffers only, so a texture-only dispatch leaves them as they were.
LEONIDA_BATCH_TEXTURE_DISPATCHES=0 restores the old behaviour; it is a toggled! switch,
so LEONIDA_AB can compare both in one run.
Why: a gameplay frame on the Series X profile had 640-790 indirect commands bounded by
a clamp pass of their own, each a dispatch between two full waits for every earlier
shader write (with ~1,050 more such waits for the title's barrier groups); the card's
time is spread over thousands of commands at 8-23 us each (GPU timing run x9).
How checked: cargo check (diag); not yet measured in the title. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/lua-modding.md')
0 files changed, 0 insertions, 0 deletions