]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
sys: [Windows] use more precise timing and sleeping
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 9 Apr 2024 14:25:39 +0000 (00:25 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 11 Apr 2024 12:11:07 +0000 (22:11 +1000)
commite1fab4be28a3b650cdfb150a9f8192ac9a8e6da9
tree22d7ec544a0bd1ba6d5266a0418156c2ee85e757
parent710d4ddf4df479bf2c87b8fbc31524aec6c3cd80
sys: [Windows] use more precise timing and sleeping

Achieved sleep behaviour is still worse than on Linux, but it's now the
best Windows can do.

Enables sys_usequeryperformancecounter by default. Most modern games use
this. Very old machines or Windows VMs may benefit from disabling it.

Fixes sys_usequeryperformancecounter issue where if enabled at startup,
timer precision was only 15.625ms.

Removes workaround for compilers that don't support 64 bit integers.

Updates documentation.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
sys_shared.c