Working on ghost issues

This commit is contained in:
2026-01-24 16:23:53 +01:00
parent 1433b9bdfc
commit 912be35172
5 changed files with 980 additions and 975 deletions

View File

@@ -272,6 +272,7 @@ namespace Marro.PacManUdon
{
if (IsOwner)
{
ProcessEventsToSend(); // Prepare events from last cycle
ProgressPingTime(); // See if we need to send a ping
}
else
@@ -282,11 +283,6 @@ namespace Marro.PacManUdon
// Forwards simulated time at the FixedUpdate pace
PerformFixedSyncedUpdate();
if (IsOwner)
{
ProcessEventsToSend();
}
}
private void UpdateInternalTime()
@@ -709,7 +705,7 @@ namespace Marro.PacManUdon
Synced = true;
}
Debug.Log($"({nameof(PacManUdon)} {nameof(NetworkManager)}) Processed incoming event! Total {index} bytes.");
Debug.Log($"({nameof(PacManUdon)} {nameof(NetworkManager)}) Performed incoming eventof type {eventType}! Total {index} bytes.");
retriesWithoutSuccess = 0; // We had success!