Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

perf(power): implement two-stage adaptive poll throttling for deep CPU idle power saving

Deepender25a40b203582e9
diff --git a/electron/main/window.ts b/electron/main/window.ts
index fa0972f..6c0cd42 100644
--- a/electron/main/window.ts
+++ b/electron/main/window.ts
@@ -128,9 +128,9 @@ const FAST_POLL_PROXIMITY_PX = 250
/** Full-speed poll when edge is near. */
const POLL_FAST_MS = 16
/** Battery-power slow poll (panel closed, cursor far). */
-const POLL_SLOW_BATTERY_MS = 60
+const POLL_SLOW_BATTERY_MS = 180
/** AC-power slow poll (panel closed, cursor far). */
-const POLL_SLOW_AC_MS = 35
+const POLL_SLOW_AC_MS = 120
/** After leaving proximity, stay in fast mode for this long before throttling. */
const SLOW_COOLDOWN_MS = 800