* FPS counter displays target framerate

* fix potential hang and out-of-bounds drawing when VCount is modified during drawing
This commit is contained in:
StapleButter
2017-07-21 10:19:56 +02:00
parent cfb9e20fe1
commit 0df3a29374
5 changed files with 20 additions and 6 deletions

View File

@ -651,8 +651,11 @@ void StartHBlank(u32 line)
{
// draw
// note: this should start 48 cycles after the scanline start
GPU2D_A->DrawScanline(line);
GPU2D_B->DrawScanline(line);
if (line < 192)
{
GPU2D_A->DrawScanline(line);
GPU2D_B->DrawScanline(line);
}
NDS::CheckDMAs(0, 0x02);
}