gstream.cpp : Implement sprite limit per frame

This commit is contained in:
cam900 2020-02-22 00:29:10 +09:00 committed by GitHub
parent 354e0a65c8
commit cbbf09372c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -780,9 +780,14 @@ uint32_t gstream_state::screen_update(screen_device &screen, bitmap_rgb32 &bitma
draw_bg(bitmap, cliprect, 1, m_vram + 0x400/4);
draw_bg(bitmap, cliprect, 0, m_vram + 0x000/4); // move on top for x2222 , check
for (i = 0x0000 / 4; i < 0x4000 / 4; i += 4)
int clk = 0;
int clk_max = 432 * 262; // TODO : measure screen size, related to that?
for (i = 0x0000 / 4; i < 0x4000 / 4; i += 4) // can't be drawable everything
{
clk += 8+128;
if (clk >= clk_max)
break;
/* Upper bits are used by the tilemaps */
int code = m_vram[i + 0] & 0xffff;
int x = m_vram[i + 1] & 0x1ff;