From: kub Date: Tue, 3 Mar 2020 19:36:55 +0000 (+0100) Subject: vdp rendering, tiny improvement X-Git-Tag: v2.00~768 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a2b4e7e882a7e81c96b966d1f19acf1c09929dd;p=picodrive.git vdp rendering, tiny improvement --- 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);