Full cpu load - OS.set_low_processor_usage_mode(true) doesn't work

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rinart73
:warning: Old Version Published before Godot 3 was released.

I have a simple application. One 2d sprite which loads an image.
The sprite has a script attached with that code:

extends Sprite

func _ready():
    OS.set_low_processor_usage_mode(true)

This function must reduce cpu load. But it doesn’t work.

I didn’t specified target fps. Because I don’t need to specify it. Low usage mod description says that it will stop any drawing processes if there is no application content updates.
I have a static image. So there is nothing to update.

:bust_in_silhouette: Reply From: volzhs

AFAIK, set_low_processor_usage_mode works only with Editor itself, not exported game.
I’m not quite sure though…

It works in the game also, since it affects the OS class directly (i.e. it doesn’t check if it is editor at all).

Bojidar Marinov | 2016-05-18 08:22

I saw reduz said “it doesn’t work for android” somewhere.
So, I was not sure for this. hm…
maybe I remember wrong…

volzhs | 2016-05-18 08:40

Well it doesn’t work for me. I tried on Windows build without debugging.

rinart73 | 2016-05-18 10:50

When I tried it on Android it created flashing/strobing of my app and I had to remove it.

duke_meister | 2016-05-18 22:57

yes that was my case too. It made me lose almonst an entire day to figure out that was that function…

Florix | 2016-10-06 19:43