• 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!

Sleep Margin on Linux?

G

GhostlyImprints

Guest
Currently trying to make a headless dedicated server with GMS2 running on an AWS linux machine.

I need it to perform GameMaker's collision functions to make the server more authorative (replicating these functions are incredibly difficult in other languages/engines).

I'm very close, I've managed to get it working using a virtual display and no window and no drawing either.

Only problem is the CPU usage on Linux is about 20-35%.

I managed to get it very low on Windows to about 1-7% by altering the sleep margin in Game Options from 10 to 1, but unfortunately there's no option for this on Linux.

Is there a programmatic way to set the sleep margin to 1 so I can get the CPU usage down on Linux?
 
Top