diff options
author | cam900 <dbtlrchl@naver.com> | 2020-02-22 00:29:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 00:29:10 +0900 |
commit | cbbf09372cb71b185c6ea2d22356409dbfac5739 (patch) | |
tree | b4845e781c4c8d1e8f4d29ece1970245216bb0ab /src/mame | |
parent | 354e0a65c8effbc73e79af5b20c1196329de7158 (diff) |
gstream.cpp : Implement sprite limit per frame
Diffstat (limited to 'src/mame')
-rw-r--r-- | src/mame/drivers/gstream.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mame/drivers/gstream.cpp b/src/mame/drivers/gstream.cpp index 59f07382859..a0b9e055eea 100644 --- a/src/mame/drivers/gstream.cpp +++ b/src/mame/drivers/gstream.cpp @@ -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; |