Commit 213fd917 authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

gnome: fix 100% cpu usage

replace g_idle with g_timeout to fix high cpu usage
even when there are no calls

Refs #69423

Change-Id: I1f23bab9bc446c21de6ad528dc3c2a19cf369ef2
parent 763c25a0
......@@ -132,9 +132,11 @@ current_call_view_init(CurrentCallView *view)
/* init new renderer queue */
priv->new_renderer_queue = g_async_queue_new_full((GDestroyNotify)g_free);
/* check new render queue when idle */
priv->renderer_idle_source = g_idle_add_full(
/* check new render every 30 ms (30ms is "fast enough");
* we don't use an idle function so it doesn't consume cpu needlessly */
priv->renderer_idle_source = g_timeout_add_full(
G_PRIORITY_DEFAULT_IDLE,
30,
(GSourceFunc)check_renderer_queue,
view,
NULL);
......
......@@ -237,9 +237,11 @@ video_settings_view_init(VideoSettingsView *view)
/* init new renderer queue */
priv->new_renderer_queue = g_async_queue_new_full((GDestroyNotify)g_free);
/* check new render queue when idle */
priv->renderer_idle_source = g_idle_add_full(
/* check new render every 30 ms (30ms is "fast enough");
* we don't use an idle function so it doesn't consume cpu needlessly */
priv->renderer_idle_source = g_timeout_add_full(
G_PRIORITY_DEFAULT_IDLE,
30,
(GSourceFunc)check_renderer_queue,
view,
NULL);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment