From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kb562-0000fN-Rv for qemu-devel@nongnu.org; Wed, 03 Sep 2008 23:01:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kb561-0000fB-GY for qemu-devel@nongnu.org; Wed, 03 Sep 2008 23:01:21 -0400 Received: from [199.232.76.173] (port=41477 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kb561-0000f8-8l for qemu-devel@nongnu.org; Wed, 03 Sep 2008 23:01:21 -0400 Received: from mail-gx0-f23.google.com ([209.85.217.23]:34742) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kb560-0007l8-Md for qemu-devel@nongnu.org; Wed, 03 Sep 2008 23:01:21 -0400 Received: by gxk4 with SMTP id 4so2796845gxk.10 for ; Wed, 03 Sep 2008 20:01:19 -0700 (PDT) Message-ID: <48BF4F4F.40208@codemonkey.ws> Date: Wed, 03 Sep 2008 22:00:31 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] opengl rendering in the sdl window References: <48B81423.9050502@eu.citrix.com> In-Reply-To: <48B81423.9050502@eu.citrix.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Stefano Stabellini wrote: > This patch comes from xen-unstable and adds opengl support for rendering > the guest framebuffer in the SDL window. > SDL is needed anyway to open the window and handle the events. > Opengl rendering is optional and can be turned off at both compile time > and run time (--disable-opengl). > Some of the benefits of using opengl are: > > -faster rendering, less CPU intensive, especially with good graphic > cards; > Have you measured this or is this just intuition? I've measured it with gtk-vnc and I did not observe any CPU usage decrease in using OpenGL for rendering verses an XShmImage. > -makes the window resizing possible and hardware accelerated, thus very > efficient and smooth; > This is neat, but, I'm unsure if the right way to support OpenGL is through SDL. For instance, there were Cocoa OpenGL patches posted a bit ago that would be largely similar. It may make more sense to have an OpenGL front-end that has conditional code for SDL/Cocoa/X/etc. Then again, I've been kicking around the idea of doing a GTK front-end. An obvious thing to do here would be a glext based OpenGL version (as we do in gtk-vnc). I think we need to have some discussion about what the long term front-end should be for QEMU. Otherwise, we're going to end up with a proliferation of front-ends. Personally, I'd rather move from SDL to GTK so that we can build a proper user interface. Regards, Anthony Liguori