test case demonstrating PeekMessage give up timeslices
Alexandre Julliard
julliard at winehq.org
Tue Aug 2 09:27:33 CDT 2005
Oliver Mössinger <olivwork at web.de> writes:
> Hi wine-devel,
>
> attached i have a test case whitch demonstates the differece between Windows
> and wine. There is also a sample program 'TEST.CPP' attached.
>
> On Windows XP
> - Start 'test.exe' from a dos-box... you see some FAST counting integers
> - Start a other (loop.pl) program witch consumes mutch cpu time.
> - the output of 'test.exe' is slower but FAST
>
> On wine
> - Start 'test.exe' from a dos-box... you see some FAST counting integers
> - Start a other (loop.pl) program witch consumes mutch cpu time.
> - the output of 'test.exe' is very slow
>
> This different behavior starts from wine version 20041201. The version before
> was ok.
>
> I have no patch and it would be nice if someone can write a patch to fix this.
You can probably fix it by passing PM_NOYIELD in the PeekMessage
calls. But if your app needs a lot of CPU, restructuring the code to
avoid all the needless polling would give much better results, and
probably improve the behavior on Windows too.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list