From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZlIb-0001li-Hn for qemu-devel@nongnu.org; Wed, 18 Feb 2009 07:13:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZlIa-0001lP-Mn for qemu-devel@nongnu.org; Wed, 18 Feb 2009 07:13:09 -0500 Received: from [199.232.76.173] (port=43421 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZlIa-0001lJ-Ee for qemu-devel@nongnu.org; Wed, 18 Feb 2009 07:13:08 -0500 Received: from smtp.citrix.com ([66.165.176.89]:19202) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZlIa-00088Y-8l for qemu-devel@nongnu.org; Wed, 18 Feb 2009 07:13:08 -0500 Message-ID: <499BFB32.90806@eu.citrix.com> Date: Wed, 18 Feb 2009 12:12:34 +0000 From: Stefano Stabellini MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Qemu 2D performance plunges below acceptable levels References: <7fac565a0902150510y1fb01c6awd1dcc3b6e7b8232d@mail.gmail.com> <7fac565a0902150911u1ed66ef0gc55663d723c76ae4@mail.gmail.com> <4999407C.5040009@eu.citrix.com> <49995266.3050707@redhat.com> <4999913F.3040108@eu.citrix.com> <499AF87C.9090703@redhat.com> <499B0965.9020007@eu.citrix.com> <7fac565a0902180046r1c0070bdrbf0af9511493c22b@mail.gmail.com> <499BE774.2070707@eu.citrix.com> In-Reply-To: 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" malc wrote: >> As usual two good tests are to check the vnc case and a guest in 32bpp too. > > This doesn't happen on the very same machine running very same guest but > host OS being Linux. > Uhm.. are you using one of those infamous 20-inch iMac with a resolution of 6 bits per pixel? That would explain the slow down. Please try this patch and let me know if it makes a difference: diff --git a/sdl.c b/sdl.c index cfdf852..a5cc6d1 100644 --- a/sdl.c +++ b/sdl.c @@ -95,7 +95,7 @@ static void sdl_resize(DisplayState *ds) width = ds_get_width(ds); height = ds_get_height(ds); - real_screen = SDL_SetVideoMode(width, height, 0, flags); + real_screen = SDL_SetVideoMode(width, height, 32, flags); if (!real_screen) { fprintf(stderr, "Could not open SDL display\n"); exit(1);