I am trying to throttle down the cpu usage of the engine. I am working on a program that does not need to update the state so often, it need to update the state just when the user make some input.
I have trying to make the cpu usage lower by using the following code:
RenderingServer.RenderLoopEnabled = false;
Engine.MaxFps = 1;
GetTree().Paused = true;
OS.LowProcessorUsageMode = true;
OS.LowProcessorUsageModeSleepUsec = 100000;
Even with all of that at the same time the cpu usage is maxed in one core. Also tested Thread.Sleep()
Plase note that the code is just a test. I was expecting that at least at 1 FPS, not rendering and disabling some systems the CPU usage would decrease but is not.
Is this a bug?
There is a way to control the update of the engine?