• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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