From 4c7e0d59bc06ce1c83b768116152716b92832f0e Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Thu, 6 Jun 2024 20:54:25 +0530 Subject: [PATCH] reduce rollback threshold and disable zPass to fix ice --- src/MarbleWorld.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MarbleWorld.hx b/src/MarbleWorld.hx index 46504150..2269fe45 100644 --- a/src/MarbleWorld.hx +++ b/src/MarbleWorld.hx @@ -1253,7 +1253,7 @@ class MarbleWorld extends Scheduler { if (ourMoveStruct != null) { var otherPred = predictions.retrieveState(clientMarble, ourMoveStruct.timeState.ticks); if (otherPred != null) { - if (otherPred.getError(lastMove) > 0.1) { + if (otherPred.getError(lastMove) > 0.01) { // Debug.drawSphere(@:privateAccess clientMarbles[Net.clientIdMap[client]].newPos, 0.2, 0.5); // trace('Prediction error: ${otherPred.getError(lastMove)}'); // trace('Desync for tick ${ourMoveStruct.timeState.ticks}'); @@ -1287,7 +1287,7 @@ class MarbleWorld extends Scheduler { if (ourMoveStruct != null) { var ourPred = predictions.retrieveState(marble, ourMoveStruct.timeState.ticks); if (ourPred != null) { - if (ourPred.getError(ourMove) > 0.1) { + if (ourPred.getError(ourMove) > 0.01) { // trace('Desync for tick ${ourMoveStruct.timeState.ticks}'); marble.unpackUpdate(ourMove); needsPrediction |= 1 << Net.clientId;