From 81d9242514b4e8e3fe97cf7063a15680f610bf2f Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Wed, 7 Feb 2018 18:15:07 +0100 Subject: * I think GameGraphics() can be executed as long as GPU has received all DMA blocks. Remove if something goes wrong. --- Source/Game.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Source/Game.c') diff --git a/Source/Game.c b/Source/Game.c index f3fd11a..0263933 100644 --- a/Source/Game.c +++ b/Source/Game.c @@ -1062,7 +1062,7 @@ void GameGraphics(void) SystemAcknowledgeFrame(); - while ( (SystemRefreshNeeded() == false) || (GfxIsGPUBusy() != false) ); + while ( (SystemRefreshNeeded() == false) || (GfxReadyForDMATransfer() == false) ); if (TwoPlayersActive != false) { @@ -1075,8 +1075,6 @@ void GameGraphics(void) GfxIncreaseGlobalLuminance(1); } - while (GsIsDrawing()); - for (i = 0; i < MAX_PLAYERS ; i++) { TYPE_PLAYER* ptrPlayer = &PlayerData[i]; -- cgit v1.2.3