pop-os / cosmic-workspaces-epoch

GNU General Public License v3.0
17 stars 11 forks source link

Large number of `get_registry` calls at start, and on opening workspaces view #36

Open ids1024 opened 2 months ago

ids1024 commented 2 months ago

wl_registry objects are never destroyed, so this leaks resources and is likely an issue.

Not sure exactly where get_registry is being called. Ideally there should only be one wl_registry instance, but a few in difference libraries is fine.

ids1024 commented 2 months ago

This issue seems to exist in upstream Iced, when using the wgpu backend, and creating multiple windows.

ids1024 commented 2 months ago

Looking at Mesa's code, it does seem the Vulkan WSI calls wl_display_get_registry every time you create a surface.

This may be a problem for anything that creates and destroys a lot of Vulkan surfaces.

ids1024 commented 2 months ago

https://gitlab.freedesktop.org/mesa/mesa/-/issues/11000

ids1024 commented 2 months ago

https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/388 hopefully will allow this to be fixed in Mesa.