• Olivier Fourdan's avatar
    compositor: Add throttled repaint · 80498847
    Olivier Fourdan authored
    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
    80498847
compositor.c 153 KB