GPU: Align presenter/backends to cache line

This commit is contained in:
Stenzek 2025-01-18 15:12:24 +10:00
parent dd9788262e
commit da13579356
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ struct MemorySaveState;
// DESIGN NOTE: Only static methods should be called on the CPU thread. // DESIGN NOTE: Only static methods should be called on the CPU thread.
// You specifically don't have a global pointer available for this reason. // You specifically don't have a global pointer available for this reason.
class GPUBackend class ALIGN_TO_CACHE_LINE GPUBackend
{ {
public: public:
static GPUThreadCommand* NewClearVRAMCommand(); static GPUThreadCommand* NewClearVRAMCommand();

View File

@ -23,7 +23,7 @@ struct GPUSettings;
struct GPUBackendUpdateDisplayCommand; struct GPUBackendUpdateDisplayCommand;
struct GPUBackendFramePresentationParameters; struct GPUBackendFramePresentationParameters;
class GPUPresenter final class ALIGN_TO_CACHE_LINE GPUPresenter final
{ {
public: public:
GPUPresenter(); GPUPresenter();