Lots of work on debugging diff xmit

This commit is contained in:
2021-11-21 13:35:39 -05:00
parent 0881e33c6f
commit b19825aaca
23 changed files with 338 additions and 99 deletions

View File

@@ -52,6 +52,7 @@
#include <ostream>
#include <unordered_map>
#include "streambuffer.hpp"
#include "debugcollector.hpp"
#include "util.hpp"
@@ -174,6 +175,7 @@ public:
size_t size() const { return steps_.size(); }
int32_t size_limit() const { return size_limit_; }
int64_t version_number() const { return version_number_; }
bool version_identical(const AnimQueue &aq) const;
// Return true if the size limit and steps are identical.
bool size_and_steps_equal(const AnimQueue &aq) const;
@@ -193,9 +195,8 @@ public:
void deserialize(StreamBuffer *sb);
// Difference transmission
bool need_patch(const AnimQueue &auth) const;
void diff(const AnimQueue &auth, StreamBuffer *sb) const;
void patch(StreamBuffer *sb);
bool diff(const AnimQueue &auth, StreamBuffer *sb) const;
void patch(StreamBuffer *sb, DebugCollector *dbc);
void update_version(const AnimQueue &auth);
// Get the final resting place after all animations are complete.