From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FeauJ-0002iy-JH for qemu-devel@nongnu.org; Fri, 12 May 2006 12:54:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FeauH-0002i8-PI for qemu-devel@nongnu.org; Fri, 12 May 2006 12:54:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeauH-0002i3-MK for qemu-devel@nongnu.org; Fri, 12 May 2006 12:54:25 -0400 Received: from [65.74.133.6] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Feaw3-0000a3-EI for qemu-devel@nongnu.org; Fri, 12 May 2006 12:56:15 -0400 From: Paul Brook Subject: Re: [Qemu-devel] PATCH: fix bgr color mapping on qemu on Solaris/SPARC Date: Fri, 12 May 2006 17:54:13 +0100 References: <9893291.1147284983406.JavaMail.root@eastrmwml06.mgt.cox.net> <20060512155317.GD4310@mail.shareable.org> <4464BA8B.9040801@medsci.uu.se> In-Reply-To: <4464BA8B.9040801@medsci.uu.se> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605121754.15320.paul@codesourcery.com> 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 > Anyway, many people think of OpenGL as just 3D, but it is extremely > competent for 2D (given a good driver). That's where your argument falls down. I wouldn't be surprised if even a crappy OpenGL implementation could beat plain GDI. However I'd guess most OpenGL drivers are optimised for common 3D operations. OpenGL provides a very wide range of functionality, however if you go outside the commonly used (and hence optimized) feature set performance is likely to be fairly poor when compared if optimized routines. > standard Windows GDI and 145 ms for the OpenGL 2D-canvas (and its just a > standard business computer with no fancy graphic card at all). If GDI was writing directly to video memory and OpenGL was writing to a buffer in system memory that would explain the large difference. I'm not saying OpenGL is necessarily a bad thing, but it's certainly not (yet) what I'd consider good solution. Especially considering that 90% of modern graphics cards don't have any open source OpenGL capable drivers. Paul