frontend: fix frame limiter issue
authornotaz <notasas@gmail.com>
Sun, 18 Sep 2011 00:13:23 +0000 (03:13 +0300)
committernotaz <notasas@gmail.com>
Mon, 19 Sep 2011 16:01:47 +0000 (19:01 +0300)
sleeping too much sometims causes unwanted stuttering..

frontend/plugin_lib.c

index 0a49872..b60c1cd 100644 (file)
@@ -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) {