Commit 80498847 authored by Olivier Fourdan's avatar Olivier Fourdan 🛠

compositor: Add throttled repaint

When using vblank while the screen is turned off, only 1 notification
per second is triggered.

In such a case, there is no need for the compositor to retry repainting
the screen at such a high pace as when when the screen is on.

To avoid wasting power resources, simply throttle repaints after 100
unsuccessful retries.
Signed-off-by: Olivier Fourdan's avatarOlivier Fourdan <fourdan@xfce.org>
Closes:#502
parent cb06a039
Pipeline #6194 passed with stages
in 2 minutes and 50 seconds