From e88cf536c95bceb850525afbc79b2c9172f96e7d Mon Sep 17 00:00:00 2001 From: barbudreadmon Date: Sun, 16 Feb 2025 22:04:00 +0100 Subject: [PATCH] undrfire: use 4 frames of sprite lag --- src/burn/drv/taito/d_undrfire.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/burn/drv/taito/d_undrfire.cpp b/src/burn/drv/taito/d_undrfire.cpp index de779f2a8e..334b93467d 100644 --- a/src/burn/drv/taito/d_undrfire.cpp +++ b/src/burn/drv/taito/d_undrfire.cpp @@ -20,6 +20,7 @@ static UINT8 DrvRecalc; static UINT8 *TaitoSpriteRamBuffered2; static UINT8 *TaitoSpriteRamBuffered3; +static UINT8 *TaitoSpriteRamBuffered4; static UINT8 *Contrast_LUT; static UINT8 *Brightness_LUT; @@ -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; @@ -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; @@ -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);