diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 14:55:53 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 14:55:53 -0500 |
| commit | 1eb891134eececd9a664d6b6def4c709dd2a07a8 (patch) | |
| tree | b1b1ea6fd036ede47fac9c1f725b2a0a8365e3a4 /runtime/test/vk_queue_constructor_oom_test.cpp | |
| parent | 529d9da21f06befa1e178e9ec1d915ce51ba25a1 (diff) | |
Two small savings on the threads that translate lists: a frame's first draw found without a write, title memory read without zeroing it first
Both after DoubleGhosty/cool_fox (GPL-3.0-or-later; Esteban Viera), where the code was the same.
- State::early_textures asks at every draw's bind, on every thread that translates lists, whether
the draw is the frame's first, and swapped a shared word to find out: its cache line was written
some 4,000 times a frame from all of them. The word is now read first and swapped only when the
frame changed (cool_fox ca7e76a). LEONIDA_FRAME_PEEK=0: swapped at every ask, as before.
- host::read_there (the texture queue's reads of title memory) zeroed the whole buffer and then
read over it. Only what the mapped runs leave out is zeroed now; every byte of a run is read,
or zeroed where the read fails, as before (cool_fox e8b62de). LEONIDA_READ_ZERO_GAPS=0: the
whole buffer first, as before.
Neither changes what is drawn. Not measured in the title.
Tests: draw::tests::a_frame_is_first_once_whether_the_word_is_read_first_or_not,
host::tests::only_bytes_outside_the_runs_are_zeroed (and what_is_there_is_read_and_the_rest_is_zeros,
which was there).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_queue_constructor_oom_test.cpp')
0 files changed, 0 insertions, 0 deletions