[MPlayer-dev-eng] [PATCH] use timer-lx.c on darwin & osx

Arpi arpi at mplayerhq.hu
Wed Apr 27 00:29:28 CEST 2005


Hi,

> 
> On 26 Apr 2005, at 22:19, Nicolas Plourde wrote:
> > I ran some benchmark using both timer and my result are showing
> > not much performance lost using timer-darwin.c(not taking cpu load 
> > into account).
> > But has previously reported by Dieter Shirley <dete at mac.com>, 
> > usec_sleep is called way too often.
> 
> The patch suggested by Dieter Shirley reduces the "fudge factor" from 
> 0.020 to 0.005, decreasing the number of calls of usleep(0) which under 
> MacOS X seems to give good results. The question is if this has a 
> negative impact for the other architectures. Anyone willing to take 
> some test?

sure.
on linux, usleep()'s min. delay is 20ms, this is the cause for the 0.020
value (even usleep(0) delays 20msec). so do not change it, at least for
linux!


A'rpi / MPlayer, Astral & ESP-team

--
Girls are like internet domain names, the ones I like are already taken.




More information about the MPlayer-dev-eng mailing list