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
This commit is contained in:
Aaron Giles 2008-10-09 09:39:15 +00:00
parent dfd75d29b8
commit 01d21217d7
2 changed files with 4 additions and 11 deletions

View File

@ -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);

View File

@ -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;