From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbeP5-0004n8-C0 for qemu-devel@nongnu.org; Fri, 05 Sep 2008 12:43:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbeP3-0004lb-KE for qemu-devel@nongnu.org; Fri, 05 Sep 2008 12:43:22 -0400 Received: from [199.232.76.173] (port=60031 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbeP3-0004lQ-Dq for qemu-devel@nongnu.org; Fri, 05 Sep 2008 12:43:21 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:58294) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbeP2-0000xl-Q0 for qemu-devel@nongnu.org; Fri, 05 Sep 2008 12:43:21 -0400 Message-ID: <48C16207.5090808@eu.citrix.com> Date: Fri, 05 Sep 2008 17:44:55 +0100 From: Stefano Stabellini MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] opengl rendering in the sdl window References: <48B81423.9050502@eu.citrix.com> <48BF4F4F.40208@codemonkey.ws> <48BFB318.206@eu.citrix.com> <20080905120214.GD1373@shareable.org> In-Reply-To: <20080905120214.GD1373@shareable.org> Content-Type: text/plain; charset=UTF-8 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 Jamie Lokier wrote: > > Fwiw, in my experience with Xine and mplayer, drawing video updates to > the screen using OpenGL was quite a lot slower than drawing them with > XShmImage. That needs colour conversion as video doesn't even use RGB. > > Probably OpenGL is faster on some hardware, and slower on some hardware. > Don't assume it's always faster. Yes, good point. > Yes it very much depends on the drivers and opengl implementation. It > isn't always possible to map the guest framebuffer into video > (texture) memory, and also some opengl implementations are not > particularly fast at copying textures from CPU memory to texture memory. This is also true. > Another way to map guest framebuffer to video memory is the XF86DGA > extension, which is great when you can use it. I think VMware uses it > in full-screen mode. I went with OpenGL because I wanted the accelerated window resize feature, and because I think it will give us more opportunities for further improvements (for example using PBOs as soon as they are supported by at least one open source graphic card driver).