pub struct SimConfig {Show 14 fields
pub drive: DriveModel,
pub pool_pages: u32,
pub lead_radius: u32,
pub keep_radius: u32,
pub speed_units_per_second: u32,
pub max_in_flight: u8,
pub tick_micros: u32,
pub install_ticks: u32,
pub fail_every: u32,
pub placement: Placement,
pub movable: bool,
pub step_budget: u32,
pub pinned: Vec<u32>,
pub warm_start: bool,
}Expand description
Simulator knobs.
Fields§
§drive: DriveModelThe drive.
pool_pages: u32Pages in the region pool.
lead_radius: u32Regions within this walk distance of the player are requested (lead ring), nearest first.
keep_radius: u32Unwanted regions within this distance are in the hysteresis band.
speed_units_per_second: u32Player speed assumed for lead deadlines, units per second. The default
is the design’s v_max of 470, a design estimate, not a measurement.
max_in_flight: u8Transport depth.
tick_micros: u32Microseconds per simulated tick (16 667: 60 Hz).
install_ticks: u32Ticks of install work after a region lands (0: none, the region is resident when read). The design lists the install cost as unmeasured.
fail_every: u32Every Nth read fails (0: none).
placement: PlacementPlacement policy of the pool.
movable: boolWhether compaction may move regions.
step_budget: u32Bookkeeping budget per step, passed on as the step_budget of the
[psx_residency::Config].
pinned: Vec<u32>Regions pinned for the whole run (the home pin), at demand class.
warm_start: boolLoad the start region’s needs before the route begins (a loading screen at boot), not counted in the report.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimConfig
impl RefUnwindSafe for SimConfig
impl Send for SimConfig
impl Sync for SimConfig
impl Unpin for SimConfig
impl UnsafeUnpin for SimConfig
impl UnwindSafe for SimConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)