mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
gstream.cpp : Implement sprite limit per frame
This commit is contained in:
parent
354e0a65c8
commit
cbbf09372c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user