]> git.localhorst.tv Git - blank.git/blobdiff - src/server/ClientConnection.hpp
higher precision for quats over the net
[blank.git] / src / server / ClientConnection.hpp
index 1a781c5dd6ad5dea7f88b033e4648bed6aee4550..16beccf7aecb100471185aca85cd684023e2d6c8 100644 (file)
@@ -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<SpawnStatus *> 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;