From 913fb32793832b4f8978ff64ed6f6db82f96b51e Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Thu, 27 Oct 2022 00:29:30 +0300 Subject: [PATCH] early partial DMA of OAM during init, shows up as a broken up UI before the first frame is done. Stop it. --- src/gamescr.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gamescr.c b/src/gamescr.c index 2703795..383ea9d 100644 --- a/src/gamescr.c +++ b/src/gamescr.c @@ -119,9 +119,6 @@ static int gamescr_start(void) spr_oam(oam, sidx++, SPRID_UISLASH, 216, 144, SPR_VRECT | SPR_256COL); dynspr_base = sidx; - wait_vblank(); - dma_copy32(3, (void*)OAM_ADDR, oam, sidx * 2, 0); - num_enemies = total_enemies = 0; energy = 5; @@ -361,8 +358,6 @@ static void gamescr_vblank(void) vblcount++; - if(!nframes) return; - /* TODO: pre-arrange sprite tiles in gba-native format, so that I can just * DMA them from cartridge easily */ -- 1.7.10.4