vdp fifo speed optimization

This commit is contained in:
kub 2020-03-14 19:52:27 +01:00
parent 20fafa7127
commit c55a44a88c
5 changed files with 210 additions and 125 deletions

View file

@ -179,6 +179,7 @@ static int PicoFrameHints(void)
}
pv->status |= SR_VB | PVS_VB2; // go into vblank
PicoVideoFIFOMode(pv->reg[1]&0x40, pv->reg[12]&1);
// the following SekRun is there for several reasons:
// there must be a delay after vblank bit is set and irq is asserted (Mazin Saga)
@ -270,6 +271,7 @@ static int PicoFrameHints(void)
pv->status &= ~(SR_VB | PVS_VB2);
pv->status |= ((pv->reg[1] >> 3) ^ SR_VB) & SR_VB; // forced blanking
PicoVideoFIFOMode(pv->reg[1]&0x40, pv->reg[12]&1);
// last scanline
Pico.m.scanline = y++;