mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-08 23:07:31 +00:00
Align the GPU so the tick count can be aligned.
It's atomic for free on 64 bit, but only if it's aligned.
This commit is contained in:
parent
ffa0f2fb44
commit
597b2fe597
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Common/Common.h"
|
||||
#include "Common/MemoryUtil.h"
|
||||
#include "Core/ThreadEventQueue.h"
|
||||
#include "GPU/GPUInterface.h"
|
||||
#include "GPU/Common/GPUDebugInterface.h"
|
||||
@ -64,6 +65,13 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
void *operator new(size_t s) {
|
||||
return AllocateAlignedMemory(s, 16);
|
||||
}
|
||||
void operator delete(void *p) {
|
||||
FreeAlignedMemory(p);
|
||||
}
|
||||
|
||||
protected:
|
||||
// To avoid virtual calls to PreExecuteOp().
|
||||
virtual void FastRunLoop(DisplayList &list) = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user