[PATCH 1/2] ntdll: Stabilize CreateTimerQueueTimer callbacks over time.

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Thu Feb 14 06:25:13 CST 2013


It's sad that this *essential* patch may be applied almost one year after I wrote it.

To recap, machines since Vista stabilize, although the algorithm they employ is
different in its effects (I don't know how it works exactly).
I once told that pre-Vista machines don't stabilize. I was wrong. They do it *differently*,
not considering how much time the callback consumes but somehow they still try to
present a regular rate, sometimes firing immediately twice or more in a row.

I've separated out the tests because these are the problematic issue that
had prevent inclusion of the patch in the past.

The algorithm is simple, too simple perhaps, but it is good enough as long as the timer
does not fire too late (i.e. max one period late).
Without it, Wine measures no feedback on its timer rate,
delivering events at an arbitrary rate :-(

 Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-Stabilize-CreateTimerQueueTimer-callbacks-ove.patch
Type: application/octet-stream
Size: 1509 bytes
Desc: 0001-ntdll-Stabilize-CreateTimerQueueTimer-callbacks-ove.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130214/27357297/attachment.obj>

More information about the wine-patches mailing list