diff options
author | notaz | 2011-02-04 01:05:11 +0200 |
---|---|---|
committer | notaz | 2011-02-04 15:11:59 +0200 |
commit | 907b1e90dff65f404907aeff405742030b62671e (patch) | |
tree | 6f2e850e9a95ad7358b4cb0e9266a7544935b234 /frontend/plugin_lib.c | |
parent | 9098b863732585e49d22dba266c4f342ed1ecaa6 (diff) | |
download | pcsx_rearmed-907b1e90dff65f404907aeff405742030b62671e.tar.gz pcsx_rearmed-907b1e90dff65f404907aeff405742030b62671e.tar.bz2 pcsx_rearmed-907b1e90dff65f404907aeff405742030b62671e.zip |
menu: don't override region, fix P.E.Op.S. frameskip
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); |