mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
debug draw: drops
This commit is contained in:
parent
707bb87fb6
commit
c8c632ce6c
@ -282,6 +282,12 @@ protected virtual void OnClientToServerDeltaSync(byte baselineTick, Vector3? pos
|
|||||||
// we should never apply a delta on top of a wrong baseline.
|
// we should never apply a delta on top of a wrong baseline.
|
||||||
if (baselineTick != lastDeserializedBaselineTick)
|
if (baselineTick != lastDeserializedBaselineTick)
|
||||||
{
|
{
|
||||||
|
// debug draw: drop
|
||||||
|
if (debugDraw)
|
||||||
|
{
|
||||||
|
if (position.HasValue) Debug.DrawLine(position.Value, position.Value + Vector3.up, Color.red, 10f);
|
||||||
|
}
|
||||||
|
|
||||||
// this can happen if unreliable arrives before reliable etc.
|
// this can happen if unreliable arrives before reliable etc.
|
||||||
// no need to log this except when debugging.
|
// no need to log this except when debugging.
|
||||||
// Debug.Log($"[{name}] Server: received delta for wrong baseline #{baselineTick} from: {connectionToClient}. Last was {lastDeserializedBaselineTick}. Ignoring.");
|
// Debug.Log($"[{name}] Server: received delta for wrong baseline #{baselineTick} from: {connectionToClient}. Last was {lastDeserializedBaselineTick}. Ignoring.");
|
||||||
@ -426,6 +432,12 @@ protected virtual void OnServerToClientDeltaSync(byte baselineTick, Vector3 posi
|
|||||||
// we should never apply a delta on top of a wrong baseline.
|
// we should never apply a delta on top of a wrong baseline.
|
||||||
if (baselineTick != lastDeserializedBaselineTick)
|
if (baselineTick != lastDeserializedBaselineTick)
|
||||||
{
|
{
|
||||||
|
// debug draw: drop
|
||||||
|
if (debugDraw)
|
||||||
|
{
|
||||||
|
Debug.DrawLine(position, position + Vector3.up, Color.red, 10f);
|
||||||
|
}
|
||||||
|
|
||||||
// this can happen if unreliable arrives before reliable etc.
|
// this can happen if unreliable arrives before reliable etc.
|
||||||
// no need to log this except when debugging.
|
// no need to log this except when debugging.
|
||||||
// Debug.Log($"[{name}] Client: received delta for wrong baseline #{baselineTick}. Last was {lastDeserializedBaselineTick}. Ignoring.");
|
// Debug.Log($"[{name}] Client: received delta for wrong baseline #{baselineTick}. Last was {lastDeserializedBaselineTick}. Ignoring.");
|
||||||
|
Loading…
Reference in New Issue
Block a user