mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
PredictedRigidbody: improve logging
This commit is contained in:
parent
86805e82d2
commit
2c603fd406
@ -459,7 +459,7 @@ void OnReceivedState(double timestamp, RigidbodyState state)
|
|||||||
// otherwise it could be out of sync as long as it's too far behind.
|
// otherwise it could be out of sync as long as it's too far behind.
|
||||||
if (state.timestamp < oldest.timestamp)
|
if (state.timestamp < oldest.timestamp)
|
||||||
{
|
{
|
||||||
Debug.LogWarning($"Hard correcting client because the client is too far behind the server. History of size={stateHistory.Count} @ t={timestamp:F3} oldest={oldest.timestamp:F3} newest={newest.timestamp:F3}. This would cause the client to be out of sync as long as it's behind.");
|
Debug.LogWarning($"Hard correcting client object {name} because the client is too far behind the server. History of size={stateHistory.Count} @ t={timestamp:F3} oldest={oldest.timestamp:F3} newest={newest.timestamp:F3}. This would cause the client to be out of sync as long as it's behind.");
|
||||||
ApplyState(state.timestamp, state.position, state.rotation, state.velocity);
|
ApplyState(state.timestamp, state.position, state.rotation, state.velocity);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user