diff --git a/strafe-client/src/graphics.rs b/strafe-client/src/graphics.rs index b870ad2..8002da7 100644 --- a/strafe-client/src/graphics.rs +++ b/strafe-client/src/graphics.rs @@ -1,7 +1,6 @@ use std::borrow::Cow; use std::collections::{HashSet,HashMap}; use strafesnet_common::map; -use strafesnet_common::integer; use strafesnet_common::model::{self, ColorId, NormalId, PolygonIter, PositionId, RenderConfigId, TextureCoordinateId, VertexId}; use wgpu::{util::DeviceExt,AstcBlock,AstcChannel}; use crate::model_graphics::{self,IndexedGraphicsMeshOwnedRenderConfig,IndexedGraphicsMeshOwnedRenderConfigId,GraphicsMeshOwnedRenderConfig,GraphicsModelColor4,GraphicsModelOwned,GraphicsVertex}; @@ -876,7 +875,7 @@ impl GraphicsState{ view:&wgpu::TextureView, device:&wgpu::Device, queue:&wgpu::Queue, - frame_state:crate::physics_worker::FrameState, + frame_state:crate::session::FrameState, ){ //TODO:use scheduled frame times to create beautiful smoothing simulation physics extrapolation assuming no input diff --git a/strafe-client/src/graphics_worker.rs b/strafe-client/src/graphics_worker.rs index dba4203..fda2810 100644 --- a/strafe-client/src/graphics_worker.rs +++ b/strafe-client/src/graphics_worker.rs @@ -1,5 +1,5 @@ pub enum Instruction{ - Render(crate::physics_worker::FrameState), + Render(crate::session::FrameState), //UpdateModel(crate::graphics::GraphicsModelUpdate), Resize(winit::dpi::PhysicalSize,crate::settings::UserSettings), ChangeMap(strafesnet_common::map::CompleteMap), diff --git a/strafe-client/src/physics_worker.rs b/strafe-client/src/physics_worker.rs index a760873..7d713bc 100644 --- a/strafe-client/src/physics_worker.rs +++ b/strafe-client/src/physics_worker.rs @@ -1,5 +1,5 @@ use crate::graphics_worker::Instruction as GraphicsInstruction; -use crate::session::{Instruction as SessionInstruction,Session, Simulation}; +use crate::session::{ExternalInstruction as SessionInstruction,Session, Simulation}; use strafesnet_common::physics::Time as PhysicsTime; use strafesnet_common::session::{Time as SessionTime,TimeInner as SessionTimeInner}; use strafesnet_common::timer::Timer; diff --git a/strafe-client/src/window.rs b/strafe-client/src/window.rs index df26eef..0473daf 100644 --- a/strafe-client/src/window.rs +++ b/strafe-client/src/window.rs @@ -141,7 +141,7 @@ impl WindowContext<'_>{ self.mouse.pos+=delta; self.physics_thread.send(TimedInstruction{ time, - instruction:SessionExternalInstruction::Input(InputInstruction::MoveMouse(self.mouse.pos)), + instruction:SessionExternalInstruction::Input(UnbufferedInstruction::MoveMouse(self.mouse.pos)), }).unwrap(); }, winit::event::DeviceEvent::MouseWheel { @@ -151,7 +151,7 @@ impl WindowContext<'_>{ if false{//self.physics.style.use_scroll{ self.physics_thread.send(TimedInstruction{ time, - instruction:SessionExternalInstruction::Input(InputInstruction::Jump(true)),//activates the immediate jump path, but the style modifier prevents controls&CONTROL_JUMP bit from being set to auto jump + instruction:SessionExternalInstruction::Input(UnbufferedInstruction::Other(OtherInstruction::SetJump(true))),//activates the immediate jump path, but the style modifier prevents controls&CONTROL_JUMP bit from being set to auto jump }).unwrap(); } },