Remove unused m_Graph member of CSmoothTime

This commit is contained in:
Robert Müller 2023-10-17 19:45:26 +02:00
parent a0c0d7efba
commit 1a01d7657f
2 changed files with 3 additions and 8 deletions

View file

@ -4,6 +4,7 @@
#include <base/math.h>
#include <base/system.h>
#include "graph.h"
#include "smooth_time.h"
void CSmoothTime::Init(int64_t Target)
@ -16,7 +17,6 @@ void CSmoothTime::Init(int64_t Target)
m_TargetMargin = 0;
m_aAdjustSpeed[ADJUSTDIRECTION_DOWN] = 0.3f;
m_aAdjustSpeed[ADJUSTDIRECTION_UP] = 0.3f;
m_Graph.Init(0.0f, 0.5f);
}
void CSmoothTime::SetAdjustSpeed(EAdjustDirection Direction, float Value)
@ -41,9 +41,6 @@ int64_t CSmoothTime::Get(int64_t Now)
a = 1.0f;
int64_t r = c + (int64_t)((t - c) * a);
m_Graph.Add(a + 0.5f);
return r + GetMargin(Now);
}

View file

@ -4,10 +4,10 @@
#ifndef ENGINE_CLIENT_SMOOTH_TIME_H
#define ENGINE_CLIENT_SMOOTH_TIME_H
#include "graph.h"
#include <cstdint>
class CGraph;
class CSmoothTime
{
public:
@ -27,8 +27,6 @@ private:
int64_t m_CurrentMargin;
int64_t m_TargetMargin;
CGraph m_Graph;
int m_SpikeCounter;
float m_aAdjustSpeed[NUM_ADJUSTDIRECTIONS];