mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
vdp rendering, tiny improvement
This commit is contained in:
parent
c1d0377e48
commit
2a2b4e7e88
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue