From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kd5HW-0004wY-Pz for qemu-devel@nongnu.org; Tue, 09 Sep 2008 11:37:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kd5HU-0004vD-5J for qemu-devel@nongnu.org; Tue, 09 Sep 2008 11:37:30 -0400 Received: from [199.232.76.173] (port=59631 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kd5HT-0004v7-PF for qemu-devel@nongnu.org; Tue, 09 Sep 2008 11:37:27 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:7935) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kd5HT-0000yj-Mf for qemu-devel@nongnu.org; Tue, 09 Sep 2008 11:37:27 -0400 Message-ID: <48C698A0.1040604@eu.citrix.com> Date: Tue, 09 Sep 2008 16:39:12 +0100 From: Stefano Stabellini MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] sdl shared buffer performance measurements 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 Hi all, I have done some simple tests to measure qemu performances with and without the shared buffer and sdl. The tests are really simple: I am just measuring CPU usage and fps on the host while running the same screensaver on the guest (Windows XP). The following are the average results: 1)Host 32 bpp, Guest 16 bpp: SDL shared: CPU 13% average, fps 33 SDL unshared: CPU 16% average, fps 33 2)Host 32 bpp, Guest 24 bpp: SDL shared: CPU 19% average, fps 33 SDL unshared: CPU 20% average, fps 33 It is seems from the data that sdl has some kind of optimization that makes qemu perform better converting 16 bpp into 32 bpp compared to the old vga_template conversion code. In the 24 bpp case the difference is very small because probably there isn't much to optimize. I have to add that I don't think these data are able to fully capture the advantage given by avoiding the memcpy's, but at least we know that sdl color conversion routines are not going to make qemu any slower. Regards, Stefano