Skip to content

Commit

Permalink
d_deco32: set framerates
Browse files Browse the repository at this point in the history
  • Loading branch information
barbudreadmon authored Oct 8, 2024
1 parent 5945c35 commit 25599b1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/burn/drv/dataeast/d_deco32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1577,6 +1577,8 @@ static INT32 FghthistCommonInit(INT32 z80_sound, UINT32 speedhack)
game_select = 1;
speedhack_address = speedhack;

BurnSetRefreshRate(57.79965);

gfxlen[0] = 0x200000;
gfxlen[1] = 0x200000;
gfxlen[2] = 0x200000;
Expand Down Expand Up @@ -1711,6 +1713,8 @@ static INT32 CaptavenCommonInit(INT32 has_z80, UINT32 speedhack)
game_select = 0;
speedhack_address = speedhack;

BurnSetRefreshRate(57.79965);

gfxlen[0] = 0x100000;
gfxlen[1] = 0x100000;
gfxlen[2] = 0x500000;
Expand Down Expand Up @@ -1840,6 +1844,9 @@ static INT32 NslasherCommonInit(INT32 has_z80, UINT32 speedhack)
game_select = 2;
has_ace = 1;
speedhack_address = speedhack;

BurnSetRefreshRate(58.464346);

GenericTilesInit(); // for allocating memory for pTempDraw;

gfxlen[0] = 0x400000;
Expand Down Expand Up @@ -2158,6 +2165,8 @@ static INT32 DragngunCommonInit(INT32 has_z80, UINT32 speedhack)
game_select = 4;
speedhack_address = speedhack;

BurnSetRefreshRate(57.79965);

GenericTilesInit(); // for allocating memory for pTempSprite

gfxlen[0] = 0x40000;
Expand Down Expand Up @@ -3578,7 +3587,10 @@ static INT32 DrvFrame()

INT32 nInterleave = 274;
INT32 nCyclesTotal[2] = { (INT32)((double)7000000 / 57.799650), (INT32)((double)deco16_sound_cpuclock / 57.799650) };
if (game_select == 2) nCyclesTotal[0] = 7080500 / 60; // nslasher
if (game_select == 2) { // nslasher
nCyclesTotal[0] = (INT32)((double)7080500 / 58.464346);
nCyclesTotal[1] = (INT32)((double)deco16_sound_cpuclock / 58.464346);
}
INT32 nCyclesDone[2] = { nExtraCycles, 0 };

ArmOpen(0);
Expand Down

0 comments on commit 25599b1

Please sign in to comment.