get Contra up to speed

This commit is contained in:
dinkc64 2014-04-18 05:44:46 +00:00
parent 180f032a5e
commit e932316e4b
1 changed files with 4 additions and 2 deletions

View File

@ -816,6 +816,7 @@ static INT32 DrvDraw()
INT32 rgb = Palette[DrvColTable[i]]; INT32 rgb = Palette[DrvColTable[i]];
DrvPalette[i] = BurnHighCol(rgb >> 16, rgb >> 8, rgb, 0); DrvPalette[i] = BurnHighCol(rgb >> 16, rgb >> 8, rgb, 0);
} }
DrvRecalc = 0;
} }
draw_bg(); draw_bg();
@ -834,7 +835,7 @@ static INT32 DrvDraw()
static INT32 DrvFrame() static INT32 DrvFrame()
{ {
INT32 nInterleave = 10; INT32 nInterleave = 20;
if (DrvReset) { if (DrvReset) {
DrvDoReset(); DrvDoReset();
@ -858,7 +859,8 @@ static INT32 DrvFrame()
INT32 nCyclesSegment = 0; INT32 nCyclesSegment = 0;
INT32 nSoundBufferPos = 0; INT32 nSoundBufferPos = 0;
INT32 nCyclesTotal[2] = { 1500000 / 60, 2000000 / 60 }; // INT32 nCyclesTotal[2] = { 1500000 / 60, 2000000 / 60 };
INT32 nCyclesTotal[2] = { 12000000 / 60, 3000000 / 60 };
INT32 nCyclesDone[2] = { 0, 0 }; INT32 nCyclesDone[2] = { 0, 0 };
for (INT32 i = 0; i < nInterleave; i++) { for (INT32 i = 0; i < nInterleave; i++) {