From: notaz Date: Sun, 18 Sep 2011 00:13:23 +0000 (+0300) Subject: frontend: fix frame limiter issue X-Git-Tag: r10~43 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47f3758357b605deeaefe94e457d28470bf5aaa3;p=pcsx_rearmed.git frontend: fix frame limiter issue sleeping too much sometims causes unwanted stuttering.. --- diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index 0a49872c..b60c1cdf 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -310,7 +310,7 @@ void pl_frame_limit(void) if (!(g_opts & OPT_NO_FRAMELIM) && diff > frame_interval) { // yay for working usleep on pandora! //printf("usleep %d\n", diff - frame_interval / 2); - usleep(diff - frame_interval / 2); + usleep(diff - frame_interval); } if (pl_rearmed_cbs.frameskip) {