From f67ffac2273f207f6198b11dd2f3ca352ce9deda Mon Sep 17 00:00:00 2001 From: Corwin Date: Mon, 17 Apr 2023 23:48:48 +0100 Subject: [PATCH] prioritise audio and deprioritise objects --- examples/the-purple-night/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/the-purple-night/src/lib.rs b/examples/the-purple-night/src/lib.rs index e7467c9f..534602b0 100644 --- a/examples/the-purple-night/src/lib.rs +++ b/examples/the-purple-night/src/lib.rs @@ -2269,12 +2269,12 @@ fn game_with_level(gba: &mut agb::Gba) { ); start_at_boss = loop { - sfx.frame(); vblank.wait_for_vblank(); - object.commit(); + sfx.frame(); game.level.background.commit(&mut vram); game.level.foreground.commit(&mut vram); game.level.clouds.commit(&mut vram); + object.commit(); match game.advance_frame(&object, &mut vram, &mut sfx) { GameStatus::Continue => {} GameStatus::Lost => {