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:
@ -121,7 +121,7 @@ struct State
|
||||
static constexpr u32 GTERegisterOffset(u32 index) { return OFFSETOF(State, gte_regs.r32) + (sizeof(u32) * index); }
|
||||
};
|
||||
|
||||
extern State g_state;
|
||||
ALIGN_TO_CACHE_LINE extern State g_state;
|
||||
|
||||
void Initialize();
|
||||
void Shutdown();
|
||||
|
||||
Reference in New Issue
Block a user