Struct amethyst_core::frame_limiter::FrameLimiter [−][src]
pub struct FrameLimiter { /* fields omitted */ }Frame limiter
Methods
impl FrameLimiter[src]
impl FrameLimiterpub fn new(strategy: FrameRateLimitStrategy, fps: u32) -> Self[src]
pub fn new(strategy: FrameRateLimitStrategy, fps: u32) -> SelfCreate a new frame limiter with the given config
pub fn set_rate(&mut self, strategy: FrameRateLimitStrategy, fps: u32)[src]
pub fn set_rate(&mut self, strategy: FrameRateLimitStrategy, fps: u32)Set the strategy and fps
pub fn from_config(config: FrameRateLimitConfig) -> Self[src]
pub fn from_config(config: FrameRateLimitConfig) -> SelfCreate a new frame limiter with the given config
pub fn start(&mut self)[src]
pub fn start(&mut self)Start the limiter
pub fn wait(&mut self)[src]
pub fn wait(&mut self)Wait until the frame has passed
Trait Implementations
impl Debug for FrameLimiter[src]
impl Debug for FrameLimiterfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for FrameLimiter[src]
impl Default for FrameLimiterAuto Trait Implementations
impl Send for FrameLimiter
impl Send for FrameLimiterimpl Sync for FrameLimiter
impl Sync for FrameLimiter