Function next_frame

Source
pub fn next_frame()
Expand description

Mark frame update

Example:

fn update() {
    optick::next_frame();
	...
}
Examples found in repository?
examples/gameloop.rs (line 13)
10pub fn main() {
11    let mut frame = 0; 
12    loop {
13        optick::next_frame();
14        update(frame);
15        frame = frame + 1;
16    }
17}