Misc: Align CPU state and SPU voices to cache lines

Fixes the ~12% performance regression from the texture replacement
namespace'ify commit. Apparently LTO was placing the CPU struct in the
middle of a cache line...
This commit is contained in:
Stenzek
2024-07-06 18:49:35 +10:00
parent d021a61eb5
commit 77488db3dc
4 changed files with 4 additions and 3 deletions

View File

@ -401,7 +401,7 @@ static std::array<std::array<s16, 128>, 2> s_reverb_downsample_buffer;
static std::array<std::array<s16, 64>, 2> s_reverb_upsample_buffer;
static s32 s_reverb_resample_buffer_position = 0;
static std::array<Voice, NUM_VOICES> s_voices{};
ALIGN_TO_CACHE_LINE static std::array<Voice, NUM_VOICES> s_voices{};
static InlineFIFOQueue<u16, FIFO_SIZE_IN_HALFWORDS> s_transfer_fifo;