From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMBoA-0004HJ-KU for qemu-devel@nongnu.org; Thu, 21 Jan 2016 04:45:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMBo7-0006OQ-E4 for qemu-devel@nongnu.org; Thu, 21 Jan 2016 04:45:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMBo7-0006OL-8v for qemu-devel@nongnu.org; Thu, 21 Jan 2016 04:45:35 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id CBE72C0A8022 for ; Thu, 21 Jan 2016 09:45:34 +0000 (UTC) Message-ID: <1453369532.11655.50.camel@redhat.com> From: Gerd Hoffmann Date: Thu, 21 Jan 2016 10:45:32 +0100 In-Reply-To: <20160121090025.GA31470@ad.usersys.redhat.com> References: <1453110880.23289.7.camel@redhat.com> <20160121090025.GA31470@ad.usersys.redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] RFC: running the user interface in a thread ... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: David Airlie , =?ISO-8859-1?Q?Marc-Andr=E9?= Lureau , qemu-devel Hi, > What are taking long time? Can you give a few examples? Didn't profile things, but UI code is handling bulky graphics data, which of course takes time, especially in case some software scaling is involved. For sdl-1 I remember complains about it slowing down guests alot. IIRC I checked a while back and figured it does some X11 stuff synchronously (i.e. waits on X server reply) somewhere deep in the library. With virglrenderer a new issue came up: compiling shaders can take time. Given both opengl and ui toolkits tend to be pretty bad at multithreading I'm not sure how well helper threads for heavier UI tasks are going to work (I suspect that is the background of your question). cheers, Gerd