]> git.localhorst.tv Git - blank.git/blobdiff - src/server/ClientConnection.hpp
send updates less frequently on bad connections
[blank.git] / src / server / ClientConnection.hpp
index 0a5dcd034db106e0b868ae8fe82b9a9505636a5d..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,6 +108,7 @@ 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;