diff --git a/client/src/lib.rs b/client/src/lib.rs index b13a84acdc..f53dda3672 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -30,7 +30,7 @@ use common::{ slot::{EquipSlot, InvSlotId, Slot}, CharacterState, ChatMode, CommandGenerator, ControlAction, ControlEvent, Controller, ControllerInputs, GroupManip, InputKind, InventoryAction, InventoryEvent, - InventoryUpdateEvent, MapMarkerChange, RemoteController, UtteranceKind, + InventoryUpdateEvent, MapMarkerChange, RemoteController, UtteranceKind, Vel, }, event::{EventBus, LocalEvent, UpdateCharacterMetadata}, grid::Grid, @@ -238,6 +238,7 @@ pub struct Client { local_command_gen: CommandGenerator, next_control: Controller, inter_tick_rewind_time: Option, + _rewind_fluctuation_budget: f64, network: Option, participant: Option, @@ -723,6 +724,7 @@ impl Client { local_command_gen: CommandGenerator::default(), next_control: Controller::default(), inter_tick_rewind_time: None, + _rewind_fluctuation_budget: 0.0, network: Some(network), participant: Some(participant), @@ -1732,7 +1734,9 @@ impl Client { frontend_events.append(&mut self.handle_new_messages()?); // Simulate Ahead - if let Some(_rewind_time) = self.inter_tick_rewind_time { + common_base::plot!("recived_time_sync", 0.0); + if let Some(rewind_time) = self.inter_tick_rewind_time { + common_base::plot!("recived_time_sync", 1.0); let _time = self.state.ecs().read_resource::