summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-10-09 09:39:15 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-10-09 09:39:15 +0000
commit01d21217d7edab25b9e2070836c2ecb143ebfd98 (patch)
tree7a951a4148653a3ca02eea2d155fa55b26a888be /src
parentdfd75d29b81df3b665a57d4754e1dfed0681a41d (diff)
From: Christophe Jaillet [mailto:christophe.jaillet@wanadoo.fr]
Sent: Sunday, October 05, 2008 1:46 PM To: submit@mamedev.org Subject: 2 small patches Here are two small patches. The first one remove a profiler_mark that has been forgotten in one of the last update in the tx1.c video driver. The second is a small speed up in the neo-geo driver which gives a 0.5% speed up on my machine. - replace a loop with an equivalent memset - remove a useless parameter I forgot to remove in a previous patch Hope this help. Best regards, CJ
Diffstat (limited to 'src')
-rw-r--r--src/mame/video/neogeo.c12
-rw-r--r--src/mame/video/tx1.c3
2 files changed, 4 insertions, 11 deletions
diff --git a/src/mame/video/neogeo.c b/src/mame/video/neogeo.c
index 02b9fd3ddb9..8f376a637b6 100644
--- a/src/mame/video/neogeo.c
+++ b/src/mame/video/neogeo.c
@@ -414,7 +414,7 @@ INLINE int sprite_on_scanline(int scanline, int y, int rows)
}
-static void draw_sprites(running_machine *machine, bitmap_t *bitmap, int scanline)
+static void draw_sprites(bitmap_t *bitmap, int scanline)
{
int sprite_index;
int max_sprite_index;
@@ -650,12 +650,8 @@ static void parse_sprites(int scanline)
}
/* fill the rest of the sprite list with 0, including one extra entry */
- for (; active_sprite_count <= MAX_SPRITES_PER_LINE ; active_sprite_count++)
- {
- *sprite_list = 0;
-
- sprite_list++;
- }
+ memset(sprite_list, 0,
+ sizeof(sprite_list[0]) * (MAX_SPRITES_PER_LINE - active_sprite_count + 1));
}
@@ -934,7 +930,7 @@ VIDEO_UPDATE( neogeo )
/* fill with background color first */
fillbitmap(bitmap, pens[0x0fff], cliprect);
- draw_sprites(screen->machine, bitmap, cliprect->min_y);
+ draw_sprites(bitmap, cliprect->min_y);
draw_fixed_layer(screen->machine, bitmap, cliprect->min_y);
diff --git a/src/mame/video/tx1.c b/src/mame/video/tx1.c
index 2d0ee5a8459..fc55b84ee18 100644
--- a/src/mame/video/tx1.c
+++ b/src/mame/video/tx1.c
@@ -5,7 +5,6 @@
****************************************************************************/
#include "driver.h"
-#include "profiler.h"
#include "render.h"
#include "cpu/i86/i86.h"
#include "video/resnet.h"
@@ -1513,8 +1512,6 @@ static void buggybjr_draw_road(running_machine *machine, UINT8 *bitmap, int wide
wave1 = BIT(vregs.flags, BB_RDFLAG_WAVE1);
rva_offs = BIT(vregs.flags, BB_RDFLAG_RVA7) ? 0x800 : 0xc00;
- profiler_mark(PROFILER_USER1);
-
for (y = 0; y < 240; ++y)
{
UINT8 rva0_6;