Network: Extend post-desync frame sync history

Record sync state at various points throughout each frame
This commit is contained in:
Jonathan G Rennison
2023-08-28 15:17:53 +01:00
parent 8e755bf0c2
commit cdf1ff8d5a
13 changed files with 241 additions and 65 deletions

View File

@@ -36,6 +36,7 @@
#include "3rdparty/cpp-btree/btree_set.h"
#include "scope_info.h"
#include "core/ring_buffer.hpp"
#include "network/network_sync.h"
#include <array>
#include <list>
#include <set>
@@ -786,6 +787,7 @@ void RunTileLoop(bool apply_day_length)
}
_cur_tileloop_tile = tile;
RecordSyncEvent(NSRE_TILE);
}
void RunAuxiliaryTileLoop()
@@ -813,6 +815,7 @@ void RunAuxiliaryTileLoop()
}
_aux_tileloop_tile = tile;
RecordSyncEvent(NSRE_AUX_TILE);
}
void InitializeLandscape()
@@ -1627,9 +1630,13 @@ void CallLandscapeTick()
PerformanceAccumulator framerate(PFE_GL_LANDSCAPE);
OnTick_Town();
RecordSyncEvent(NSRE_TOWN);
OnTick_Trees();
RecordSyncEvent(NSRE_TREE);
OnTick_Station();
RecordSyncEvent(NSRE_STATION);
OnTick_Industry();
RecordSyncEvent(NSRE_INDUSTRY);
}
OnTick_LinkGraph();