Enum amethyst_core::frame_limiter::FrameRateLimitStrategy [−][src]
pub enum FrameRateLimitStrategy {
Unlimited,
Yield,
Sleep,
SleepAndYield(Duration),
}Frame rate limiting strategy
Variants
UnlimitedNo limit, will do a single yield, and then continue with the next frame
YieldUse yield until the full frame duration has passed
SleepUse sleep until the full frame duration has passed
SleepAndYield(Duration)Use sleep and yield combined, will use sleep strategy until the given duration remains, and then swap to yield strategy.
Trait Implementations
impl Debug for FrameRateLimitStrategy[src]
impl Debug for FrameRateLimitStrategyfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for FrameRateLimitStrategy[src]
impl Clone for FrameRateLimitStrategyfn clone(&self) -> FrameRateLimitStrategy[src]
fn clone(&self) -> FrameRateLimitStrategyReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for FrameRateLimitStrategy[src]
impl Default for FrameRateLimitStrategyAuto Trait Implementations
impl Send for FrameRateLimitStrategy
impl Send for FrameRateLimitStrategyimpl Sync for FrameRateLimitStrategy
impl Sync for FrameRateLimitStrategy