Skip to content

erismart/FrameTimer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FrameTimer

A rust drop in frame timer

BETA VERSION

This is a frame timer for rust, meant to be used to insure that game loops stay to a certain rate

It is meant to be as simple as can be First create it like this

let mut frame_timer: FrameTimer = FrameTimer::new();

At the start of your game loop call

frame_timer.frame_start();

At the end of your game loop call

frame_timer.frame_end();

and that will limit your game to 60 frames a second

Future features

  1. Add in a delta frame calculation and varible
  2. Make the frame timer smarter so that it may account for inconsistent sleep times
  3. Open to suggestions

About

A rust drop in frame timer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%