laanwj / sundog

A port of the Atari ST game SunDog: Frozen Legacy (1984) by FTL software
MIT License
73 stars 13 forks source link

Go back to msleep #22

Closed laanwj closed 1 year ago

laanwj commented 1 year ago

Recently I implemented my own util_usleep function as it seems fine enough precision, but usleep is deprecated in POSIX. In POSIX it can be easily implemented in terms of nanosleep.

However, usleep implementation on Windows is absolutely bonkers. I'm not sure it actually works that well.

We don't really need sub-millisecond precision waiting. Waiting is used for: