Struct legion::storage::PackOptions [−][src]
pub struct PackOptions {
pub stability_threshold: u64,
pub fragmentation_threshold: f32,
pub maximum_iteration_size: usize,
}
Expand description
Describes how to perform a component pack operation.
Fields
stability_threshold: u64
The number of frames that an archetype has to remain stable before it will be considered a candidate for packing.
fragmentation_threshold: f32
The estimated number of cache misses due to fragmentation per entity that would be saved by a repack before a component storage may consider repacking itself.
maximum_iteration_size: usize
The target maximum number of entities to move during a repack before the pack is halted.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PackOptions
impl Send for PackOptions
impl Sync for PackOptions
impl Unpin for PackOptions
impl UnwindSafe for PackOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more