[MPlayer-G2-dev] Darwin port

Dan Christiansen danchr at daimi.au.dk
Sun May 11 22:00:55 CEST 2003


On Sunday, May 11, 2003, at 04:46 PM, Arpi wrote:

> hmm. you should test it by printing the return value of 
> sleep_accurate(),
> it should be close to zero. it should be never less than -0.005 and 
> more
> than 0.010, but in ideal case it's max +-0.001 off.

I changed it to use mach (kernel space) timers instead. It's what Apple 
encourages for precise timing. It appears that clock_sleep() is always 
a little late, but never early. I ran it on the matrix vcd clip, and 
had 9 values which were >0,010 or <-0,005. (Run as root, niced to -20 - 
I had many more when running unniced.)

> zero
> but never moe than half frametime, ie around 0.020 for a 25fps video

It seems to be largely within those borders, but still fluctuating.

- Dan

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: timer-macosx.c
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-g2-dev/attachments/20030511/aae2abac/attachment.txt>


More information about the MPlayer-G2-dev mailing list