mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
Update the examples to correctly use the new API
This commit is contained in:
parent
6277eaeaee
commit
f62501a748
|
@ -51,7 +51,8 @@ fn main() -> ! {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mixer.frame();
|
||||||
vblank_provider.wait_for_vblank();
|
vblank_provider.wait_for_vblank();
|
||||||
mixer.vblank();
|
mixer.after_vblank();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,8 @@ fn main() -> ! {
|
||||||
loop {
|
loop {
|
||||||
vblank_provider.wait_for_vblank();
|
vblank_provider.wait_for_vblank();
|
||||||
let before_mixing_cycles = timer.get_value();
|
let before_mixing_cycles = timer.get_value();
|
||||||
mixer.vblank();
|
mixer.after_vblank();
|
||||||
|
mixer.frame();
|
||||||
let after_mixing_cycles = timer.get_value();
|
let after_mixing_cycles = timer.get_value();
|
||||||
|
|
||||||
frame_counter = frame_counter.wrapping_add(1);
|
frame_counter = frame_counter.wrapping_add(1);
|
||||||
|
|
Loading…
Reference in a new issue