HomeComputer ScienceDoze Mode Wake-Lock Budget Simulator (2D)

Doze Mode Wake-Lock Budget Simulator (2D)

Interactive 2D dashboard of Android's Doze mode resource governor: a scrolling per-app timeline shows wake-lock requests queue and batch into exponential-backoff maintenance windows, a radial countdown gauge tracks the next window, and a live battery-drain chart shows the cost of disabling Doze.

Computer Science2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-mobile-resource-management ↗ Open standalone

Every background app on a mobile OS wants CPU and radio time, but letting them all wake independently drains the battery fast. This simulator models the resource governor that actually prevents that: Android's Doze idle maintenance windows, spaced by an exponential back-off schedule, that batch queued wake-lock requests from every app into short shared bursts. A radial gauge shows the countdown to the next window, a scrolling per-app timeline shows every request queue and fire, and a live chart tracks the battery level over time. Tune how many apps are running, how often each one wants to wake, and how far apart the maintenance windows start out, then toggle Doze off to watch the same workload's drain rate — and the battery trace's slope — get steeper once every app is free to wake whenever it wants.

⚙ Under the hood

Interactive 2D dashboard of Android's Doze mode resource governor: a scrolling per-app timeline shows wake-lock requests queue and batch into exponential-backoff maintenance windows, a radial countdown gauge tracks the next window, and a live battery-drain chart shows the cost of disabling Doze.

mobilebatteryschedulingandroidpower-managementresource-governor

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)