X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fserver%2FClientConnection.hpp;h=16beccf7aecb100471185aca85cd684023e2d6c8;hb=2da9efc1037fba0461303327151318b8edf4dfc7;hp=1a781c5dd6ad5dea7f88b033e4648bed6aee4550;hpb=dbd214ac278019c20c883cbb76456b0b0fddc063;p=blank.git diff --git a/src/server/ClientConnection.hpp b/src/server/ClientConnection.hpp index 1a781c5..16beccf 100644 --- a/src/server/ClientConnection.hpp +++ b/src/server/ClientConnection.hpp @@ -90,6 +90,8 @@ private: void SendSpawn(SpawnStatus &); void SendDespawn(SpawnStatus &); + /// true if updates are pushed to the client this frame + bool SendingUpdates() const noexcept; void QueueUpdate(SpawnStatus &); void SendUpdates(); @@ -106,10 +108,11 @@ private: unsigned int confirm_wait; std::vector entity_updates; + unsigned int entity_updates_skipped; EntityState player_update_state; std::uint16_t player_update_pack; - IntervalTimer player_update_timer; + CoarseTimer player_update_timer; std::uint8_t old_actions; ChunkTransmitter transmitter;