diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2011-12-30 16:02:22 +0100 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2011-12-30 16:02:22 +0100 |
| commit | 8ffe5826156d07b1feb7fc58bf59a1431e01160f (patch) | |
| tree | a2a0a536538e725b68741b516e80f3e0a73999c5 /src/engine/client/client.h | |
| parent | 6e20c32859ee4518f398a12b65586463ddeecaab (diff) | |
| download | zcatch-8ffe5826156d07b1feb7fc58bf59a1431e01160f.tar.gz zcatch-8ffe5826156d07b1feb7fc58bf59a1431e01160f.zip | |
ugly incomplete hack to put the rendering into another thread so we don't have to wait for the flip
Diffstat (limited to 'src/engine/client/client.h')
| -rw-r--r-- | src/engine/client/client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/client/client.h b/src/engine/client/client.h index 1504a4e4..83553eb4 100644 --- a/src/engine/client/client.h +++ b/src/engine/client/client.h @@ -172,6 +172,12 @@ class CClient : public IClient, public CDemoPlayer::IListner class CHostLookup m_VersionServeraddr; } m_VersionInfo; + semaphore m_GfxRenderSemaphore; + semaphore m_GfxStateSemaphore; + volatile int m_GfxState; + static void GraphicsThreadProxy(void *pThis) { ((CClient*)pThis)->GraphicsThread(); } + void GraphicsThread(); + public: IEngine *Engine() { return m_pEngine; } IEngineGraphics *Graphics() { return m_pGraphics; } |