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

No limit, will do a single yield and then continue with the next frame.

Yield repeatedly until the frame duration has passed.

Sleep repeatedly until the frame duration has passed.

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]

Formats the value using the given formatter. Read more

impl Clone for FrameRateLimitStrategy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for FrameRateLimitStrategy
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for FrameRateLimitStrategy

impl Sync for FrameRateLimitStrategy