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)- Pick a release from defold/extension-energy-saver releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Drag
energysaver.gointo the bootstrap collection. - Tune its script properties.
- Set the
is_energy_saving_allowedproperty withgo.setto pause the savings temporarily, for example during cutscenes.
- Pick a release from defold/extension-energy-saver releases and add its Source code (zip) URL (or a packaged
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.