]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
sys: [Windows] fix spinning instead of sleeping
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 8 Apr 2024 00:41:52 +0000 (10:41 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 11 Apr 2024 12:10:45 +0000 (22:10 +1000)
commit710d4ddf4df479bf2c87b8fbc31524aec6c3cd80
tree537cd18767fefbcc625df2667d057c723e29a14a
parentd7763f6f558a8444ffaec0315c11d75e1e766eab
sys: [Windows] fix spinning instead of sleeping

For 231beb2c234914f942166eb152c44e55b5b01f86 I tested incorrectly, using
Task Manager inside the VM which reports low CPU load even when spinning.
DP's `status` command showed the correct result.

Changes the default path from select() to: usleep() on POSIX, Sleep() on
Windows.

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