From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbBMF-0005sk-TZ for qemu-devel@nongnu.org; Thu, 04 Sep 2008 05:42:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbBME-0005rr-6S for qemu-devel@nongnu.org; Thu, 04 Sep 2008 05:42:30 -0400 Received: from [199.232.76.173] (port=55745 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbBMD-0005rd-M6 for qemu-devel@nongnu.org; Thu, 04 Sep 2008 05:42:29 -0400 Received: from mx1.redhat.com ([66.187.233.31]:34169) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbBMD-00055b-QJ for qemu-devel@nongnu.org; Thu, 04 Sep 2008 05:42:29 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m849gS0K012017 for ; Thu, 4 Sep 2008 05:42:28 -0400 Received: from file.fab.redhat.com (file.fab.redhat.com [10.33.63.6]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m849gRmi028783 for ; Thu, 4 Sep 2008 05:42:27 -0400 Received: from file.fab.redhat.com (localhost.localdomain [127.0.0.1]) by file.fab.redhat.com (8.13.1/8.13.1) with ESMTP id m849gQVC013253 for ; Thu, 4 Sep 2008 10:42:26 +0100 Received: (from berrange@localhost) by file.fab.redhat.com (8.13.1/8.13.1/Submit) id m849gQwN013249 for qemu-devel@nongnu.org; Thu, 4 Sep 2008 10:42:26 +0100 Date: Thu, 4 Sep 2008 10:42:26 +0100 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] [PATCH] opengl rendering in the sdl window Message-ID: <20080904094226.GB11424@redhat.com> References: <48B81423.9050502@eu.citrix.com> <48BF4F4F.40208@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48BF4F4F.40208@codemonkey.ws> Reply-To: "Daniel P. Berrange" , 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 On Wed, Sep 03, 2008 at 10:00:31PM -0500, Anthony Liguori wrote: > 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). Actually I'm not so sure this was a good idea in the end. I'm seriously considering re-writing the GTK-VNC stuff to use Cairo, which in turn can use 2-d hardware acceleration primitives - it really doesn't need the full 3-d acceleration stack just for scaling. > 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. As long as that's optional, because in a server deployment scenario like oVirt I don't want to pull in the GTK stack just to run QEMU vms. We currently have a minimal OS image target of < 64 MB in size. Adding GTK and its deps will totally blow that limit. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|