Frame rate drop on X11 vs Wayland
Seeing typically only 40 FPS on a simple GTK application under X11 that updates on a tick callback.
Steps to Reproduce
- Start an X11 session
- Run the "Frames" demo application
- Observe the frame rate after a few seconds
- Drag and/or resize the window
Current behavior
- Frame rate is typically ~40 FPS on a 60Hz monitor
- When dragging and resizing the window, frame rate increases to ~60 FPS
Expected outcome
- Frame rate should stay consistently at the monitor's refresh rate (in my case 60 Hz)
Version information
- GTK from current main (e7501185)
- Built with default options and
-D media-gstreamer=disabled
- Ubuntu 22.04 LTS
- Nvidia driver version 510.85.02
Additional information
Under a Wayland session application performs as expected (consistent ~60 FPS)
Edited by Andrew Marshall