Enum amethyst_core::frame_limiter::FrameRateLimitStrategy[][src]

pub enum FrameRateLimitStrategy {
    Unlimited,
    Yield,
    Sleep,
    SleepAndYield(Duration),
}

Frame rate limiting strategy

Variants

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

Use yield until the full frame duration has passed

Use sleep until the full frame duration has passed

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]

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