On Thu Jul 11 13:03:05 2024 +0000, Grigory Vasilyev wrote:
@ishitatsuyuki Using a real-time clock to limit frame time is not a rational solution. In such cases, use CLOCK_MONOTONIC. CLOCK_MONOTONIC is used by all graphics libraries. The real time clock can change the time abruptly, for example in the case of time adjustment via NTP, hence you can get unpredictable behavior in your code. Also, the real time clock has a higher overhead. In your comment to the commit, I don’t see any tests, I only see that you came up with the need for such a solution in Wine. Therefore, I ask you to provide tests.
Yeah, but did you know that NtQuerySystemTime() is called internally by Wine's NtDelayExecution()?