Page MenuHome

GHOST/Wayland WM Timer Problems
Closed, ResolvedPublicTO DO


System Information
Operating system: Fedora 32
Graphics card: Mesa Intel UHD Graphics 620 (KBL GT2)

Blender Version
Worked: never

Short description of error
When build with Wayland and running on it, panel animation only updates when the mouse is moved over the Blender window.

Exact steps for others to reproduce the error
Drag a panel in the properties area and let them animate back.

With Wayland


Revisions and Commits

Event Timeline

Hans Goudey (HooglyBoogly) changed the task status from Needs Triage to Confirmed.May 13 2020, 3:37 PM
Hans Goudey (HooglyBoogly) changed the subtype of this task from "Report" to "Bug".
Brecht Van Lommel (brecht) changed the subtype of this task from "Bug" to "To Do".May 13 2020, 3:46 PM

Marking as To Do since Wayland is still under development and is not enabled in official builds.

The problem is basically that the event handling in GHOST_SystemWayland::processEvents by wl_display_dispatch blocks until new events have been received from the compositor. This is fine and efficient of the UI only has to respond to input events etc. but obviously does not work with animations or other input independent UI events.

A non-blocking alternative, such as wl_display_roundtrip, will fix this the animation issue but will result in a "busy loop" that consumes a lot of CPU.

I will have to look into another solution for this. I think a big problem is that event handling and interface rendering happens in the same thread, but that the UI drawing is not throttled by the monitor update rate.

Blender as a whole works with a busy loop. While this might be changed in the future, for now Wayland should do the same as other GHOST backends and for waitForEvent argument.

Changing this assumption would require some deeper changes in Blender, and would involve Python API breakage as well.

@Hans Goudey (HooglyBoogly) This should be solved by Can you confirm and close this if applicable?

Hans Goudey (HooglyBoogly) claimed this task.

Works great! Thanks!