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:
Unknown W. Brackets 2013-10-26 18:11:17 -07:00
parent ffa0f2fb44
commit 597b2fe597

View File

@ -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;