uint32_t lGPUInfoVals[16];
static int iFakePrimBusy=0;
static uint32_t vBlank=0;
+static const int *skip_advice;
////////////////////////////////////////////////////////////////////////
// some misc external display funcs
if(dwActFixes&0xa0) // -> pc fps calculation fix/old skipping fix
{
- if((fps_skip < fFrameRateHz) && !bSkipNextFrame) // -> skip max one in a row
+ int skip = (skip_advice && *skip_advice) || fps_skip < fFrameRateHz;
+ if(skip && !bSkipNextFrame) // -> skip max one in a row
{bSkipNextFrame = TRUE; fps_skip=fFrameRateHz;}
else bSkipNextFrame = FALSE;
}
if (!(PSXDisplay.Interlaced)) // stupid frame skipping option
{
- if(UseFrameSkip) decideSkip();
if(dwActFixes&64) bDoLazyUpdate=TRUE;
}
+ if(UseFrameSkip) decideSkip();
}return;
//--------------------------------------------------//
// setting width
vBlank=val?0x80000000:0;
}
+// rearmed thing
+#include "../../frontend/plugin_lib.h"
+
+void GPUrearmedCallbacks(const struct rearmed_cbs *cbs)
+{
+ // sync config
+ UseFrameSkip = cbs->frameskip;
+ iUseDither = cbs->gpu_peops.iUseDither;
+ dwActFixes = cbs->gpu_peops.dwActFixes;
+ fFrameRateHz = cbs->gpu_peops.fFrameRateHz;
+ dwFrameRateTicks = cbs->gpu_peops.dwFrameRateTicks;
+
+ skip_advice = &cbs->fskip_advice;
+ fps_skip = 100.0f;
+}