On Thu Jul 11 13:36:55 2024 +0000, Tatsuyuki Ishi wrote:
I know about Unixlibs and I'm not using them because they are a PITA to distribute out-of-tree due to Steam runtime compatibility. Also, this is getting off-topic.
Sorry for sounding Captain Obvious but depending on the Wine behaviour different from Windows is never a good idea. We didn't yet encounter an app which is confirmed depending on Windows sleep granularity, but if we will I personally don't see why won't we change this behaviour, even if it is not immediately trivial to do and will first require visiting some places in the code which might depend on that. There has to be a better way.
That's not related to this MR, I didn't verify but I don't know that we really need that coarse timer.
BTW did you try experimenting with waitable timers? Maybe (didn't test) waiting for them will yield a better time granularity on Windows.