Remove unused variables m_RenderFrameTimeLow/High

This commit is contained in:
Robert Müller 2023-09-28 17:07:30 +02:00
parent 6a030e1a2b
commit 247ce38094
2 changed files with 0 additions and 8 deletions

View file

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

View file

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