Enum amethyst_core::frame_limiter::FrameRateLimitStrategy [−][src]
pub enum FrameRateLimitStrategy {
Unlimited,
Yield,
Sleep,
SleepAndYield(Duration),
}Frame rate limiting strategy.
See the module documentation on the difference between sleeping and yielding, and when these different strategies should be used.
Variants
UnlimitedNo limit, will do a single yield and then continue with the next frame.
YieldYield repeatedly until the frame duration has passed.
SleepSleep repeatedly until the frame duration has passed.
SleepAndYield(Duration)Use sleep and yield combined.
Will sleep repeatedly until the given duration remains, and then will yield repeatedly for the remaining frame time.
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