1
0
Fork 0

thread/impl: Set the task source priority to rather high

Tasks should have high, but not highest priority. Roughly the aim is

  page flip feedback > composited updates > cursor updates

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2777>
This commit is contained in:
Jonas Ådahl 2023-05-08 15:58:15 +02:00
parent e52641c4b6
commit c96e835d56

View file

@ -200,6 +200,7 @@ create_impl_source (MetaThreadImpl *thread_impl)
g_source_set_name (source, source_name);
impl_source = (MetaThreadImplSource *) source;
impl_source->thread_impl = thread_impl;
g_source_set_priority (source, G_PRIORITY_HIGH + 2);
g_source_attach (source, priv->thread_context);
g_source_unref (source);