summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2020-02-21 10:41:44 -0500
committer GitHub <noreply@github.com>2020-02-21 10:41:44 -0500
commita83ace78ef37e5603d34592e1933245bd70a0583 (patch)
treeb4845e781c4c8d1e8f4d29ece1970245216bb0ab
parent354e0a65c8effbc73e79af5b20c1196329de7158 (diff)
parentcbbf09372cb71b185c6ea2d22356409dbfac5739 (diff)
Merge pull request #6341 from cam900/patch-129
gstream.cpp : Implement sprite limit per frame
-rw-r--r--src/mame/drivers/gstream.cpp9
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;