Skip to Content
defold-typescript libraries
defold (official)

defold/extension-energy-saver

An energysaver.go game object with a script and a GUI dimmer that lower power use after a period of input inactivity. It reduces the frame rate, dims the screen by 50%, and finally disables rendering, each on its own configurable delay.

No Lua API — content, shaders, build-time tooling or engine-side native code only.

  • GitHub: defold/extension-energy-saver — pinned to 1.0.0 (released while Defold 1.13.0 was current)
    1. Pick a release from defold/extension-energy-saver releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Drag energysaver.go into the bootstrap collection.
    3. Tune its script properties.
    4. Set the is_energy_saving_allowed property with go.set to pause the savings temporarily, for example during cutscenes.

Engine APIs

The script drives sys (sys.set_update_frequency, sys.set_render_enabled), timer for the inactivity delays, and gui for the dimming overlay.

On this page