Asset - Extension Native CPU-Safe sleep() [WINDOWS+LINUX]

DukeSoft

Member
Hi everyone,

In order to solve another problem (high CPU usage on Ubuntu servers) I needed a way to safely sleep the game thread, without wasting CPU resources.

I've made this asset now, and its available for free.

So far it only supports Windows and Linux but the source is out there, so feel free to add more support :)



CPU-Safe sleep
- dssleep_nanoseconds
- dssleep_microseconds
- dssleep_milliseconds
- dssleep_seconds
- dssleep_minutes


Marketplace: https://marketplace.yoyogames.com/assets/7735/dukesoft-cpu-safe-sleep
GitHub / Source: https://github.com/RobQuistNL/DSSleep
 
Last edited:
Top