main_loop 0.3.3

main loop for real time applications
1
2
3
4
5
6
7
8
9
10
11
#[cfg(target_os = "emscripten")]
mod emscripten;

#[cfg(not(target_os = "emscripten"))]
mod native;

#[cfg(target_os = "emscripten")]
pub use self::emscripten::{run, set_target_fps, target_fps};

#[cfg(not(target_os = "emscripten"))]
pub use self::native::{run, set_target_fps, target_fps};