[MPlayer-users] mplayer win32 issue
Sascha Sommer
saschasommer at freenet.de
Sun Nov 16 11:09:44 CET 2003
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> okay
> i've managed to make things MUCH faster
> i know it's very dirty but:
> in mplayer.c:2219
>
> float min=softsleep?0.021:0.005;
> current_module="sleep_usleep";
> while(time_frame>min){
> if(time_frame<=0.020)
> usec_sleep(0); // sleeps 1 clock tick (10ms)!
> else
> usec_sleep(1000000*(time_frame-0.020));
> time_frame-=GetRelativeTime();
> }
> if(softsleep){
> current_module="sleep_soft";
> if(time_frame<0) mp_msg(MSGT_AVSYNC, MSGL_WARN, "Warning!
Softsleep underflow!\n");
> while(time_frame>0) time_frame-=GetRelativeTime(); // burn the
CPU
> }
>
>
>
>
>
>
> I change that to:
>
> float min=softsleep?0.021:0.005;
> current_module="sleep_usleep";
> while(time_frame>min){
> if(time_frame<=0.002)
> usec_sleep(0); // sleeps 1 clock tick (10ms)!
> else
> usec_sleep(1000000*(time_frame-0.002));
> time_frame-=GetRelativeTime();
> }
> if(softsleep){
> current_module="sleep_soft";
> if(time_frame<0) mp_msg(MSGT_AVSYNC, MSGL_WARN, "Warning!
Softsleep underflow!\n");
> while(time_frame>0) time_frame-=GetRelativeTime(); // burn the
CPU
> }
>
>
Just curious can you please change the usec_sleep(0) in the original code to
usec_sleep(1000)
and report me if the problem is gone?
Btw. please try to send diff -u of your changes. This makes it a lot easier
to find out what
you actually changed.
Sascha
More information about the MPlayer-users
mailing list