Add support for frame throttling on wayland with winit #4200
Labels
a:backend-winit
Winit backend (mS,mO)
a:platform-linux
issue specific to Linux, X11 or wayland (mO,bT)
bug
Something isn't working
Similar to #4025, we should be using winit's
pre_present_notify
to throttle the refresh on wayland.Frame rates > 60 FPS have been observed by users on wayland, that should not happen.
Test setup:
SLINT_DEBUG_PERFORMANCE="refresh_full_speed,console"
With EGL based rendering, swap buffers rate limits, but when using the software renderer, the shm transport ends up being used, which can submit to the compositor at unlimited rate. This is where the wayland frame callbacks help and throttle rendering as needed.
The text was updated successfully, but these errors were encountered: