diff options
Diffstat (limited to 'frontend/plugin_lib.c')
-rw-r--r-- | frontend/plugin_lib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index 287b551..2481779 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -31,6 +31,9 @@ int keystate; static int pl_fbdev_w, pl_fbdev_h, pl_fbdev_bpp; static int flip_cnt, vsync_cnt, flips_per_sec, tick_per_sec; static float vsps_cur; +// P.E.Op.S. +extern int UseFrameSkip; +extern float fps_skip; static int get_cpu_ticks(void) { @@ -192,6 +195,10 @@ void pl_frame_limit(void) //printf("usleep %d\n", diff - pl_frame_interval / 2); usleep(diff - pl_frame_interval / 2); } + else if (diff < 0 && UseFrameSkip) { + // P.E.Op.S. makes skip decision based on this + fps_skip = 1000000.0f / (float)-diff; + } } pcnt_start(PCNT_ALL); |