mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
reduce rollback threshold and disable zPass to fix ice
This commit is contained in:
parent
efcf3dc307
commit
b24c12c629
2 changed files with 5 additions and 5 deletions
|
|
@ -1252,7 +1252,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}');
|
||||
|
|
@ -1286,7 +1286,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;
|
||||
|
|
|
|||
|
|
@ -137,9 +137,9 @@ class Renderer extends h3d.scene.Renderer {
|
|||
renderPass(defaultPass, get("skyshape"), backToFront);
|
||||
}
|
||||
if (!cubemapPass || Settings.optionsSettings.reflectionDetail >= 2) {
|
||||
if (!cubemapPass)
|
||||
ProfilerUI.measure("interiorZPass", 0);
|
||||
renderPass(defaultPass, get("zPass"));
|
||||
// if (!cubemapPass)
|
||||
// ProfilerUI.measure("interiorZPass", 0);
|
||||
// renderPass(defaultPass, get("zPass"));
|
||||
if (!cubemapPass)
|
||||
ProfilerUI.measure("interior", 0);
|
||||
renderPass(defaultPass, get("interior"));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue