From 2a2b4e7e882a7e81c96b966d1f19acf1c09929dd Mon Sep 17 00:00:00 2001 From: kub Date: Tue, 3 Mar 2020 20:36:55 +0100 Subject: [PATCH] vdp rendering, tiny improvement --- pico/draw.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pico/draw.c b/pico/draw.c index b797875d..833d87cd 100644 --- a/pico/draw.c +++ b/pico/draw.c @@ -636,19 +636,14 @@ static void DrawTilesFromCache(int *hc, int sh, int rlim, struct PicoEState *est if (!sh) { - int blank=-1; // The tile we know is blank while ((code=*hc++)) { - if ((code<<16|code>>25) == blank) - continue; // Get tile address/2: addr = (code & 0x7ff) << 4; addr += code >> 25; // y offset into tile pack = *(unsigned int *)(PicoMem.vram + addr); - if (!pack) { - blank = code<<16|code>>25; + if (!pack) continue; - } dx = (code >> 16) & 0x1ff; pal = ((code >> 9) & 0x30); -- 2.39.5