Desktop app power and hardware use: "Keep computer awake" holds the display on from launch, no battery awareness, CPU-only recording

These are from the Antigravity desktop app 2.26.0 on a Windows 11 laptop (Ryzen 7 5800H, Radeon graphics). I checked the app’s own main-process code in resources\app.asar, its logs, and what Chromium reports about the GPU.

“Keep computer awake” keeps the display on all the time

With the setting on, the app starts a power-save blocker of type prevent-display-sleep as soon as it launches. My log shows Power save blocker started at 13:45:32 today, a few seconds after the app started and before any agent ran. It is not tied to whether agents are running, even though the tray already tracks the running-agent count. With “run in background” also on, the monitor never sleeps while the app is open, and the GPU keeps drawing the animated UI.

Two changes would help: use prevent-app-suspension, which keeps the system awake but lets the display sleep, and hold the blocker only while at least one agent is running.

No battery awareness

The main-process code never asks whether the laptop is on battery. I found no use of Electron’s power monitor. The app therefore does the same work unplugged: the decorative animations, the background rewrites of the summary store, and the rest. Pausing animations and slowing background writes on battery would extend battery life.

Recording uses only the CPU

Browser recordings are encoded by the bundled resources\bin\webm_encoder.exe. The binary names VP9 and contains no reference to any hardware encoder interface (AMD AMF, NVIDIA NVENC, Intel Quick Sync, Windows Media Foundation or Direct3D 11). So recording runs on the CPU, while Chromium itself reports hardware video encode as enabled on this GPU. Offering H.264 or HEVC through Media Foundation where the GPU supports it would move that work to the video engine.

Two smaller things

  • With the animations paused, the GPU process still used about 21% of a core, so the compositor does not fully idle while the window is visible.
  • Audio and video-capture helper processes start with the app (about 200 MB of working set together) even when no microphone or camera is in use.

Thanks for sharing this. While I wasn’t running the desktop app directly, I’ve had a very similar issue running Antigravity IDE, CLI, and Gemini concurrently.

After the latest update, battery life took a massive hit dropped from 100% to 60% in roughly 15 minutes on battery, with fans running at full speed. Running multiple tools definitely adds overhead, but the unoptimized background loops you outlined certainly seem to play a major role.