D
Dani
Guest
Hello!
In any of my GMS2 projects, if I change the Sleep Margin config parameter for Windows, I get the following results:
Obviously, people own different computers, so it would be a good idea to let them set the Sleep Margin they want from within the game, so these are my questions:
1. What is the sleep margin for?
2. Why there is no sleep margin on Mac and Linux?
3. Is there any way to change the sleep margin on the fly, via code?
Thanks in advance.
In any of my GMS2 projects, if I change the Sleep Margin config parameter for Windows, I get the following results:
Code:
Sleep Margin = 1 ===> Game runs very slow. Crappy scrolling parallax. Almost no CPU usage.
Sleep Margin = 10 ===> Game runs ok. No smooth scrolling parallax. Low CPU usage.
Sleep Margin = 15 ===> Game runs good. Smooth scrolling parallax. Medium CPU usage.
Sleep Margin = 20 ===> Game runs very good. Super smooth scrolling parallax. High CPU usage.
1. What is the sleep margin for?
2. Why there is no sleep margin on Mac and Linux?
3. Is there any way to change the sleep margin on the fly, via code?
Thanks in advance.