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