From ccec26706e8828699f74e8c37748641f7f831585 Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 21 Jun 2022 02:08:24 +0100 Subject: [PATCH] cause vram gc to run before enabling mixer this avoids the harsh sounds at the start of the game --- examples/the-hat-chooses-the-wizard/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/the-hat-chooses-the-wizard/src/main.rs b/examples/the-hat-chooses-the-wizard/src/main.rs index 2853f864..80071419 100644 --- a/examples/the-hat-chooses-the-wizard/src/main.rs +++ b/examples/the-hat-chooses-the-wizard/src/main.rs @@ -807,6 +807,9 @@ fn main(mut agb: agb::Gba) -> ! { ); loop { + world_display.commit(&mut vram); + world_display.show(); + vram.set_background_palettes(tile_sheet::background.palettes); let object = agb.display.object.get();