diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 12:18:18 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 12:18:18 -0500 |
| commit | c8cb6f6778e3c7b6d1408fbfcdd5c1637ee1abe8 (patch) | |
| tree | 194f0705fb1c8d11cfc6f121ca2d670293615a0d /runtime/test/cpp_unwind_test.cpp | |
| parent | 7e45f80c771b5d109f26fd6b1def961da5253961 (diff) | |
Texture fingerprint: places spread over the whole texture (LEONIDA_HEAP_PRINT_SPREAD, off by default)
What may be wrong: a texture picked by index is uploaded once and then looked
at again by a fingerprint of 48 KiB of its memory: 16 KiB at its start (the
smallest levels), its middle and its end (both in the largest level of a plain
texture). What the title writes anywhere else after the upload, with nothing to
tell of it, stays as it was on the card: zeros or what the memory held before,
in the square tiles the console lays a texture out in. That such late writes
happen is counted: over 200 a run are found by the three windows (of the first
200 of run port15: 95 within four frames of the upload, 73 within sixteen, 18
more than 176 frames after). The expected cause of the square patches in an
otherwise sharp texture; not shown in a run yet.
What changes: with LEONIDA_HEAP_PRINT_SPREAD=<places> (1: 64; unset or 0: none,
as before) the fingerprint also reads 256 bytes in the middle of each 64 KiB
step of the texture, of that many steps at even distances where there are
more. The low half of the fingerprint is then the three windows', the high
half the places', and a change only the places saw is counted and named in the
log (the first 100, then every 1000th).
Not ported, the same hole closed otherwise: the start of every level
(fxceless/victory-fork #559 by NickJBc, in Fayberr/Victory-United 262625e3),
and all of a texture of up to 4 MiB whose pages the title has at a second
address (kitty-core/Kitty6 ae3cce8, in LoverCatys/ruff-lab d843417). The forks'
BC7 rotation fix (fxceless 06702fe8, trustno1-coder 6726920) changes nothing
with the table shipped: none of its 512 control words and none of the 255
dictionary entries has rotation bits outside modes 4 and 5 (counted).
Off by default: a look costs more (2 MiB: 3.4 us without, 6.4 us with its 32
places, in the test) and a texture the title keeps repainting between the
windows goes up again at every look.
Tests: cargo test --profile diag -p leonida-gpu --features diagnostics --lib
spread_places a_change_between (2 tests); cargo check --profile diag -p leonida
--features diagnostics. Not run on the game. AI-assisted.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions