pub struct HeijunkaConfig {
pub frame_budget_ms: f64,
pub physics_budget_fraction: f64,
pub base_dt: f64,
pub max_substeps: usize,
pub min_substeps: usize,
pub auto_adjust_quality: bool,
pub upgrade_threshold: usize,
}Expand description
Heijunka scheduler configuration.
Fields§
§frame_budget_ms: f64Total frame budget in milliseconds (default: 16ms for 60 FPS).
physics_budget_fraction: f64Physics budget as fraction of frame budget (default: 0.5).
base_dt: f64Base time step in seconds.
max_substeps: usizeMaximum substeps per frame.
min_substeps: usizeMinimum substeps per frame.
auto_adjust_quality: boolAuto-adjust quality based on performance.
upgrade_threshold: usizeConsecutive frames below budget needed to upgrade quality.
Implementations§
Source§impl HeijunkaConfig
impl HeijunkaConfig
Sourcepub fn physics_budget_ms(&self) -> f64
pub fn physics_budget_ms(&self) -> f64
Get physics budget in milliseconds.
Trait Implementations§
Source§impl Clone for HeijunkaConfig
impl Clone for HeijunkaConfig
Source§fn clone(&self) -> HeijunkaConfig
fn clone(&self) -> HeijunkaConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeijunkaConfig
impl Debug for HeijunkaConfig
Source§impl Default for HeijunkaConfig
impl Default for HeijunkaConfig
Source§impl<'de> Deserialize<'de> for HeijunkaConfig
impl<'de> Deserialize<'de> for HeijunkaConfig
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
Auto Trait Implementations§
impl Freeze for HeijunkaConfig
impl RefUnwindSafe for HeijunkaConfig
impl Send for HeijunkaConfig
impl Sync for HeijunkaConfig
impl Unpin for HeijunkaConfig
impl UnsafeUnpin for HeijunkaConfig
impl UnwindSafe for HeijunkaConfig
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