:clock: côté client

This commit is contained in:
MarcEricMartel 2023-11-24 12:36:01 -05:00
parent 3600e597e6
commit 06a5bb67d3

View File

@ -1241,12 +1241,16 @@ void Engine::Render(float elapsedTime) {
Sync sync; Sync sync;
uint64_t id = m_conn.getId(); uint64_t id = m_conn.getId();
static std::vector<char*> lsPck; static std::vector<char*> lsPck;
static uint64_t sync_acc = 0;
sync_acc += tstamp;
if (false) { // TODO: Faire un checkup pour chaque ~1000ms. if (sync_acc >= 1000) {
sync_acc -= 1000;
sync.sid = id; sync.sid = id;
sync.timestamp = tstamp; sync.timestamp = tstamp;
sync.position = m_player.GetPosition(); sync.position = m_player.GetPosition();
sync.hp = m_player.GetHP(); sync.hp = m_player.GetHP();
// TODO: Garrocher ca quelque-part. // TODO: Garrocher ca quelque-part.
} }