#[non_exhaustive]pub struct InterpolationConfig {
pub tick_rate: u32,
pub capacity: usize,
pub base_delay_ticks: f64,
pub min_delay_ticks: f64,
pub max_delay_ticks: f64,
pub smoothing: f64,
pub jitter_multiplier: f64,
pub late_sample_penalty_ticks: f64,
pub max_adjustment_per_sample_ticks: f64,
}Expand description
Remote-state buffer and adaptive interpolation-delay parameters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tick_rate: u32Authoritative server simulation frequency.
capacity: usizeMaximum remote states retained in Tick order.
base_delay_ticks: f64Normal render delay before measured jitter or late arrivals are added.
min_delay_ticks: f64Minimum adaptive render delay.
max_delay_ticks: f64Maximum adaptive render delay.
smoothing: f64Exponential smoothing weight for arrival jitter and late-sample pressure.
jitter_multiplier: f64Number of additional delay ticks added per measured jitter Tick.
late_sample_penalty_ticks: f64Maximum additional delay caused by repeatedly late samples.
max_adjustment_per_sample_ticks: f64Maximum interpolation-delay movement after one newest-state observation.
Implementations§
Source§impl InterpolationConfig
impl InterpolationConfig
Sourcepub fn validate(&self) -> NetcodeResult<()>
pub fn validate(&self) -> NetcodeResult<()>
Validates Tick, capacity, smoothing, and delay bounds.
Trait Implementations§
Source§impl Clone for InterpolationConfig
impl Clone for InterpolationConfig
Source§fn clone(&self) -> InterpolationConfig
fn clone(&self) -> InterpolationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InterpolationConfig
Source§impl Debug for InterpolationConfig
impl Debug for InterpolationConfig
Source§impl Default for InterpolationConfig
impl Default for InterpolationConfig
Source§impl<'de> Deserialize<'de> for InterpolationConfigwhere
InterpolationConfig: Default,
impl<'de> Deserialize<'de> for InterpolationConfigwhere
InterpolationConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InterpolationConfig
impl PartialEq for InterpolationConfig
Source§impl Serialize for InterpolationConfig
impl Serialize for InterpolationConfig
impl StructuralPartialEq for InterpolationConfig
Auto Trait Implementations§
impl Freeze for InterpolationConfig
impl RefUnwindSafe for InterpolationConfig
impl Send for InterpolationConfig
impl Sync for InterpolationConfig
impl Unpin for InterpolationConfig
impl UnsafeUnpin for InterpolationConfig
impl UnwindSafe for InterpolationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more