mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
core vdp, avoid rendering if no changes to RAMs/registers
mainly benefits 32X in faster/fastest rendering mode, 0-5% saved
This commit is contained in:
parent
0c9c8e4796
commit
f9ed944604
6 changed files with 48 additions and 11 deletions
|
@ -168,10 +168,12 @@ static int PicoFrameHints(void)
|
|||
{
|
||||
// find the right moment for frame renderer, when display is no longer blanked
|
||||
if ((pv->reg[1]&0x40) || y > 100) {
|
||||
PicoFrameFull();
|
||||
if (Pico.est.rendstatus & PDRAW_SYNC_NEEDED)
|
||||
PicoFrameFull();
|
||||
#ifdef DRAW_FINISH_FUNC
|
||||
DRAW_FINISH_FUNC();
|
||||
#endif
|
||||
Pico.est.rendstatus &= ~PDRAW_SYNC_NEEDED;
|
||||
skip = 1;
|
||||
}
|
||||
}
|
||||
|
@ -191,10 +193,11 @@ static int PicoFrameHints(void)
|
|||
if (!skip)
|
||||
{
|
||||
if (Pico.est.DrawScanline < y)
|
||||
PicoDrawSync(y - 1, 0, 0);
|
||||
PicoVideoSync(-1);
|
||||
#ifdef DRAW_FINISH_FUNC
|
||||
DRAW_FINISH_FUNC();
|
||||
#endif
|
||||
Pico.est.rendstatus &= ~PDRAW_SYNC_NEEDED;
|
||||
}
|
||||
#ifdef PICO_32X
|
||||
p32x_render_frame();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue