public void Predict(bool isNeedGenSnap = true) { SetNeedGenSnapShot(isNeedGenSnap); Log.Trace(this, "Predict " + _gameStateContext.tick.value); _timeMachineService.Backup(Tick); _systems.Execute(); _systems.Cleanup(); }
public void Predict() { if (Tick % FrameBuffer.SNAPSHORT_FRAME_INTERVAL == 0) { Contexts.gameState.isPredicting = false;//确保一定会触发AddEvent Contexts.gameState.isPredicting = true; } Log.Trace(this, "Predict " + Contexts.gameState.tick.value); _timeMachineService.Backup(Tick); _systems.Execute(); _systems.Cleanup(); }