r5sdk/r5dev/engine/clockdriftmgr.h

29 lines
580 B
C
Raw Normal View History

2022-05-15 00:29:25 +02:00
#ifndef CLOCKDRIFTMGR_H
#define CLOCKDRIFTMGR_H
2023-03-27 17:42:11 +02:00
struct CClockDriftMgr
2022-05-15 00:29:25 +02:00
{
void Clear();
float GetCurrentClockDifference() const;
enum
{
// This controls how much it smooths out the samples from the server.
2022-05-15 00:29:25 +02:00
NUM_CLOCKDRIFT_SAMPLES = 24
};
float field_0[4];
int field_10;
float m_ClockOffsets[NUM_CLOCKDRIFT_SAMPLES];
int m_iCurClockOffset;
float field_78;
float field_7C;
int m_nSimulationTick;
2022-05-15 00:29:25 +02:00
float m_flClientTickTime;
float m_flServerTickTime;
int m_nClientTick;
2022-05-15 00:29:25 +02:00
int m_nServerTick;
};
2023-03-27 17:42:11 +02:00
static_assert(sizeof(CClockDriftMgr) == 0x94);
2022-05-15 00:29:25 +02:00
#endif // CLOCKDRIFTMGR_H