emulate DMA timings.

keeps games from overflowing the GXFIFO... when they aren't fucking dumb.
This commit is contained in:
StapleButter
2017-02-17 05:33:37 +01:00
parent abd2cb444b
commit cca0a71d81
7 changed files with 176 additions and 34 deletions

View File

@ -841,6 +841,8 @@ void SubmitVertex()
int logflag = 0;
void CmdFIFOWrite(CmdFIFOEntry& entry)
{
if (CmdFIFO->IsEmpty() && !CmdPIPE->IsFull())
@ -852,7 +854,8 @@ void CmdFIFOWrite(CmdFIFOEntry& entry)
{
if (CmdFIFO->IsFull())
{
printf("!!! GX FIFO FULL\n");
if (!logflag) printf("!!! GX FIFO FULL\n");
logflag = 1;
//NDS::debug(0);
return;
}
@ -876,6 +879,8 @@ CmdFIFOEntry CmdFIFORead()
CheckFIFOIRQ();
}
logflag = 0;
return ret;
}