From 47f3758357b605deeaefe94e457d28470bf5aaa3 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 18 Sep 2011 03:13:23 +0300 Subject: [PATCH] frontend: fix frame limiter issue sleeping too much sometims causes unwanted stuttering.. --- frontend/plugin_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5