Optimize kernel-to-userspace battery life across CAMSS, SPI runtime PM, dwm, NeoUI, and plugins

This commit is contained in:
Luxferre committed 2026-11-01 11:56:28 +02:00
1 parent f112b6ae72
commit 456d3fbc42
61 files changed
+466 -148

No files matched your search

+5 -1
View File
@@ -938,7 +938,11 @@ int tox_run_main(int argc, char** argv) {
if (ctx.inCall && ctx.callActive) {
timeoutMs = 20;
} else if (visible) {
timeoutMs = neoui_input_is_tap_active() ? 100 : 200;
int baseTimeout = shouldIterateTox
? static_cast<int>(std::clamp<uint32_t>(
tox_iteration_interval(tox), 250, 1000))
: -1;
timeoutMs = neoui_next_timeout_ms(baseTimeout);
} else if (shouldIterateTox) {
timeoutMs = static_cast<int>(
std::clamp<uint32_t>(tox_iteration_interval(tox), 250, 1000));