mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Remove unused variables m_RenderFrameTimeLow/High
This commit is contained in:
parent
6a030e1a2b
commit
247ce38094
|
@ -293,8 +293,6 @@ CClient::CClient() :
|
||||||
DemoRecorder = CDemoRecorder(&m_SnapshotDelta);
|
DemoRecorder = CDemoRecorder(&m_SnapshotDelta);
|
||||||
|
|
||||||
m_RenderFrameTime = 0.0001f;
|
m_RenderFrameTime = 0.0001f;
|
||||||
m_RenderFrameTimeLow = 1.0f;
|
|
||||||
m_RenderFrameTimeHigh = 0.0f;
|
|
||||||
m_RenderFrames = 0;
|
m_RenderFrames = 0;
|
||||||
m_LastRenderTime = time_get();
|
m_LastRenderTime = time_get();
|
||||||
|
|
||||||
|
@ -3238,10 +3236,6 @@ void CClient::Run()
|
||||||
|
|
||||||
// update frametime
|
// update frametime
|
||||||
m_RenderFrameTime = (Now - m_LastRenderTime) / (float)time_freq();
|
m_RenderFrameTime = (Now - m_LastRenderTime) / (float)time_freq();
|
||||||
if(m_RenderFrameTime < m_RenderFrameTimeLow)
|
|
||||||
m_RenderFrameTimeLow = m_RenderFrameTime;
|
|
||||||
if(m_RenderFrameTime > m_RenderFrameTimeHigh)
|
|
||||||
m_RenderFrameTimeHigh = m_RenderFrameTime;
|
|
||||||
m_FpsGraph.Add(1.0f / m_RenderFrameTime, 1, 1, 1);
|
m_FpsGraph.Add(1.0f / m_RenderFrameTime, 1, 1, 1);
|
||||||
|
|
||||||
if(m_BenchmarkFile)
|
if(m_BenchmarkFile)
|
||||||
|
|
|
@ -149,8 +149,6 @@ class CClient : public IClient, public CDemoPlayer::IListener
|
||||||
IGraphics::CTextureHandle m_DebugFont;
|
IGraphics::CTextureHandle m_DebugFont;
|
||||||
|
|
||||||
int64_t m_LastRenderTime;
|
int64_t m_LastRenderTime;
|
||||||
float m_RenderFrameTimeLow;
|
|
||||||
float m_RenderFrameTimeHigh;
|
|
||||||
int m_RenderFrames;
|
int m_RenderFrames;
|
||||||
|
|
||||||
int m_SnapCrcErrors;
|
int m_SnapCrcErrors;
|
||||||
|
|
Loading…
Reference in a new issue