6#include <Common/primitive_type.h>
7#include <Utility/Timer.h>
49 std::unique_ptr<ghi::GraphicsContext> m_nullCtx;
53 std::atomic<float32> m_frameTimeMs;
58 return m_frameTimeMs.load(std::memory_order_relaxed);
63 return std::this_thread::get_id() == getWorkerThreadId();
Definition GHIThread.h:19
void onAsyncProcessWork(const Work &work) override
Definition GHIThread.cpp:47
void onBeginFrame() override
Definition GHIThread.cpp:54
void onAsyncWorkerStop() override
Definition GHIThread.cpp:40
float32 getFrameTimeMs() const
Definition GHIThread.h:56
bool isOnGHIThread() const
Definition GHIThread.h:61
void onEndFrame() override
Definition GHIThread.cpp:70
void addContextSwitchWork(ghi::GraphicsContext *newCtx)
Definition GHIThread.cpp:87
GHIThread()
Definition GHIThread.cpp:17
~GHIThread() override
Definition GHIThread.cpp:26
void onAsyncWorkerStart() override
Definition GHIThread.cpp:32
Definition GHIThreadUpdateContext.h:11
Definition TUnbufferedFrameWorkerThread.h:30
Definition GraphicsContext.h:24
Definition PlatformDisplay.h:13
Definition ph_editor.h:10