perf: block event loop with -1 timeout instead of spinning

Use epoll blocking dispatch so the compositor sleeps when idle.
WINGs timers and frame callbacks still wake the loop as needed.
This commit is contained in:
lkn 2026-06-24 19:26:16 +02:00
parent 4897e1637b
commit 12d49c6642
1 changed files with 1 additions and 1 deletions

View File

@ -1141,7 +1141,7 @@ wl_event_loop_run(void)
wl_display_flush_clients(wl_state.display);
extern void W_WLClientDispatchPending(void);
W_WLClientDispatchPending();
wl_event_loop_dispatch(loop, 4);
wl_event_loop_dispatch(loop, -1); /* block until fd ready */
/* Check inotify for defaults database changes */
#ifdef HAVE_INOTIFY