[MPlayer-cygwin] Change priority to realtime in windows

Joseph Miller joseph at tidetamerboatlifts.com
Tue Oct 5 20:17:20 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Raising thread priority does help with multimedia applications.  I have not 
actually tested this on mplayer, but my old K6-2 400MHz would play dvd's 
smoothly if I upped the thread priority and jerky if I didn't.  It can make a 
difference, but it is screwing with your OS so it may have undesired 
side-effects.

- -Joseph

On Tuesday 05 October 2004 1:33 pm, Reimar Döffinger wrote:
> Hi,
>
> >>Any volunteers to implement something like this as an option?  It has
> >>been requested many many times..
> >
> > #ifdef WIN32
> > # include <windows.h>
> > #endif
> >   [...]
> > #ifdef WIN32
> >   SetThreadPriority(GetCurrentProcess(), THREAD_PRIORITY_TIME_CRITICAL);
> > #endif
> >
> > IMHO, "time critical" is helpful, but not so aggressive that it even
> > needs to be optional.  I do this in my packages.  With this priority,
> > MPlayer gets preference over other normal apps, but will still defer CPU
> > time to critical OS tasks.
>
> It gave problems for some users nevertheless. And I already posted a
> patch that does something like this once, but nobody cared to make it an
> option.
> I'm also not sure if THREAD_PRIORITY_TIME_CRITICAL exists on e.g. win98
> can someone check? And last but not least I'm not too sure if raising
> thread priority will help enough - I might test if I ever boot into
> Windows again ;-)
>
> Greetings,
> Reimar Döffinger
>
> _______________________________________________
> MPlayer-cygwin mailing list
> MPlayer-cygwin at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cygwin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBYuUzmXZROF+EADURAitiAJoCtKneZOfsE4BqcTLyyCvDwEtS7ACeI5AG
Iu4z7a+5/QtpYCiAjeWrmts=
=aVKJ
-----END PGP SIGNATURE-----




More information about the MPlayer-cygwin mailing list