* delay 3D rendering a bit (fixes Monster Trucks flickering)

* remove logging for ITCM/DTCM
This commit is contained in:
StapleButter
2017-05-27 23:47:20 +02:00
parent 6f4d835c7f
commit 529039f766
3 changed files with 13 additions and 9 deletions

View File

@ -617,7 +617,14 @@ void StartHBlank(u32 line)
DispStat[0] |= (1<<1);
DispStat[1] |= (1<<1);
if (VCount < 192) NDS::CheckDMAs(0, 0x02);
if (VCount < 192)
{
NDS::CheckDMAs(0, 0x02);
}
else if (VCount == 215)
{
GPU3D::VCount215();
}
if (DispStat[0] & (1<<4)) NDS::SetIRQ(0, NDS::IRQ_HBlank);
if (DispStat[1] & (1<<4)) NDS::SetIRQ(1, NDS::IRQ_HBlank);
@ -725,10 +732,6 @@ void StartScanline(u32 line)
{
GPU3D::VCount144();
}
else if (VCount == 215)
{
GPU3D::VCount215();
}
}
NDS::ScheduleEvent(NDS::Event_LCD, true, HBLANK_CYCLES, StartHBlank, line);