about summary refs log tree commit diff
path: root/src/engine/client/client.h
diff options
context:
space:
mode:
authoroy <tom_adams@web.de>2012-01-03 15:40:30 -0800
committeroy <tom_adams@web.de>2012-01-03 15:40:30 -0800
commit7328098f8d03e65975ec82162d2049f46fed223d (patch)
tree1c42d719df3971a3a8558a6a1a30c68b4b6f574e /src/engine/client/client.h
parentc975390195eed17c615bbebfab981a2394dec424 (diff)
parent7393151b6d4cbfd8c4be29145344dcce22aa47d7 (diff)
downloadzcatch-7328098f8d03e65975ec82162d2049f46fed223d.tar.gz
zcatch-7328098f8d03e65975ec82162d2049f46fed223d.zip
Merge pull request #912 from matricks/threadedflip
Threadedflip
Diffstat (limited to 'src/engine/client/client.h')
-rw-r--r--src/engine/client/client.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/engine/client/client.h b/src/engine/client/client.h
index 1504a4e4..1849830c 100644
--- a/src/engine/client/client.h
+++ b/src/engine/client/client.h
@@ -84,9 +84,12 @@ class CClient : public IClient, public CDemoPlayer::IListner
 	int64 m_LocalStartTime;
 
 	int m_DebugFont;
-	float m_FrameTimeLow;
-	float m_FrameTimeHigh;
-	int m_Frames;
+	
+	int64 m_LastRenderTime;
+	float m_RenderFrameTimeLow;
+	float m_RenderFrameTimeHigh;
+	int m_RenderFrames;
+
 	NETADDR m_ServerAddress;
 	int m_WindowMustRefocus;
 	int m_SnapCrcErrors;
@@ -172,6 +175,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; }