aboutsummaryrefslogtreecommitdiff
path: root/Source/Game.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-02-07 18:15:07 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2018-02-07 18:15:07 +0100
commit81d9242514b4e8e3fe97cf7063a15680f610bf2f (patch)
treeda455367502d946bd8b7b04377debef9686fc2bc /Source/Game.c
parent6364d64cbca986c61b3bea76167610198fbe99bb (diff)
downloadairport-81d9242514b4e8e3fe97cf7063a15680f610bf2f.tar.gz
* I think GameGraphics() can be executed as long as GPU has received all DMA blocks. Remove if something goes wrong.
Diffstat (limited to 'Source/Game.c')
-rw-r--r--Source/Game.c4
1 files changed, 1 insertions, 3 deletions
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];