Skip to content

Commit

Permalink
undrfire: use 4 frames of sprite lag
Browse files Browse the repository at this point in the history
  • Loading branch information
barbudreadmon authored Feb 16, 2025
1 parent 9ed70c3 commit e88cf53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/burn/drv/taito/d_undrfire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static UINT8 DrvRecalc;

static UINT8 *TaitoSpriteRamBuffered2;
static UINT8 *TaitoSpriteRamBuffered3;
static UINT8 *TaitoSpriteRamBuffered4;
static UINT8 *Contrast_LUT;
static UINT8 *Brightness_LUT;

Expand Down Expand Up @@ -365,6 +366,7 @@ static INT32 MemIndex()
TaitoSpriteRamBuffered = Next; Next += 0x004000;
TaitoSpriteRamBuffered2= Next; Next += 0x004000;
TaitoSpriteRamBuffered3= Next; Next += 0x004000;
TaitoSpriteRamBuffered4= Next; Next += 0x004000;
TaitoSpriteRam2 = Next; Next += 0x000400;
Taito68KRam1 = Next; Next += 0x020000;
Taito68KRam3 = Next; Next += 0x010000;
Expand Down Expand Up @@ -722,7 +724,7 @@ static void DrvPaletteUpdate()

static void draw_sprites(INT32 *primasks,INT32 x_offs,INT32 y_offs)
{
UINT32 *spriteram32 = (UINT32*)TaitoSpriteRamBuffered2;
UINT32 *spriteram32 = (UINT32*)TaitoSpriteRamBuffered4;
UINT16 *spritemap = (UINT16*)TaitoSpriteMapRom;
INT32 offs, tilenum, color, flipx, flipy;
INT32 x, y, priority, dblsize, curx, cury;
Expand Down Expand Up @@ -1193,10 +1195,8 @@ static INT32 DrvFrame()
BurnDrvRedraw();
}

if (has_subcpu) { // cbombers sprites 3 frames ahead of tiles
memcpy(TaitoSpriteRamBuffered3, TaitoSpriteRamBuffered2, 0x4000);
}
// undrfire sprites only need 2 frames ahead of tiles
memcpy(TaitoSpriteRamBuffered4, TaitoSpriteRamBuffered3, 0x4000);
memcpy(TaitoSpriteRamBuffered3, TaitoSpriteRamBuffered2, 0x4000);
memcpy(TaitoSpriteRamBuffered2, TaitoSpriteRamBuffered, 0x4000);
memcpy(TaitoSpriteRamBuffered, TaitoSpriteRam, 0x4000);

Expand Down

0 comments on commit e88cf53

Please sign in to comment.