diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 11:02:53 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 11:02:53 -0500 |
| commit | d011282a7da22d56cd687b48be262a2993a51f47 (patch) | |
| tree | 654d43de09a3912648541f06ffd26fb1aa397826 /runtime/src/xma2_decoder.cpp | |
| parent | 9e926819c871e28721f1a637eec674512d9f6e59 (diff) | |
Work spread over threads: half of the logical processors can help (LEONIDA_WIDE_HALF=1, LEONIDA_WIDE_THREADS=<n>; off by default)
The helpers for refreshes of host copies, snapshots and compares were a
quarter of the logical processors, 2 to 6: 3 on a 6-core, 12-thread PC,
where those refreshes are 14 to 28 ms of the submitting thread's frame.
LEONIDA_WIDE_THREADS=<n> (1 to 32) names their number;
LEONIDA_WIDE_HALF=1 makes it half of the logical processors (2 to 12).
LEONIDA_AB can name LEONIDA_WIDE_HALF: all the threads are kept then, and
the calls wake and count on only those that work in the phase.
After felicienradio/cold-project-vi 9069257 and dd9dffd (edupode,
GPL-3.0-or-later): VICTORY_WIDE_THREADS, and a launcher option that sets
it to half the logical processors. Measured there: 9.4 of ~27 ms of the
submitting thread a frame in 7,435 refreshes on 6 helpers of a 24-thread
Core Ultra 9 275HX; with 12, "+1 FPS on the author's PC" (22-26 fps,
Series S profile at 720p, RTX 5070 Ti laptop). Off by default here: that
PC had its processor as the limit and twice the threads; on 12, beside
the title's own, more helpers may only take turns. The bytes copied are
the same either way.
Test: the number of helpers for 2 to 64 processors, by quarter, by half
and as asked.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions