Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEW4y-0002bd-JQ for qemu-devel@nongnu.org; Mon, 14 Jan 2008 15:38:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEW4w-0002ZR-Oo for qemu-devel@nongnu.org; Mon, 14 Jan 2008 15:38:44 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEW4w-0002ZB-Ho for qemu-devel@nongnu.org; Mon, 14 Jan 2008 15:38:42 -0500 Received: from 0xc2c0b63d.fbbft3nxf1.bf-dhcp.tele.dk ([194.192.182.61] helo=smtp.hotelhot.dk) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JEW4w-0001tz-EA for qemu-devel@nongnu.org; Mon, 14 Jan 2008 15:38:42 -0500 Subject: Re: [Qemu-devel] qemu vnc.c References: <87ir1wxjf0.fsf@dylle.kalibalik.dk> From: Anders Melchiorsen Date: Mon, 14 Jan 2008 21:38:38 +0100 In-Reply-To: (Johannes Schindelin's message of "Mon, 14 Jan 2008 20:19:22 +0000 (GMT)") Message-ID: <87d4s4xhv5.fsf@dylle.kalibalik.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Johannes Schindelin Cc: qemu-devel@nongnu.org Johannes Schindelin writes: > Since you attached the patch, I will not quote the part that I am > commenting on. Yes, I attach to preserve formatting. Am I supposed to put it inline? Anyway, here it is, for discussion: diff --git a/qemu/vl.c b/qemu/vl.c index 30c9537..8d67314 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -4902,13 +4902,6 @@ static void dumb_resize(DisplayState *ds, int w, int h) { } -static void dumb_refresh(DisplayState *ds) -{ -#if defined(CONFIG_SDL) - vga_hw_update(); -#endif -} - static void dumb_display_init(DisplayState *ds) { ds->data = NULL; @@ -4916,7 +4909,7 @@ static void dumb_display_init(DisplayState *ds) ds->depth = 0; ds->dpy_update = dumb_update; ds->dpy_resize = dumb_resize; - ds->dpy_refresh = dumb_refresh; + ds->dpy_refresh = NULL; } /***********************************************************/ > By your change to dumb_refresh() you are affecting definitely more than > just VNC. I have doubts that this is intended, or good. This patch is not for VNC, but for -nographic. I resent it because it is part of my timer optimization crusade as well. About the "good" part: I tried stepping through the dumb_refresh() call before removing it, and it ended up doing nothing. Is it needed anyway? (in that case, the VNC patch is also wrong, as it stops the periodic timer when no client is connected). Also, the CONFIG_SDL thing that can make the function into a noop made me quite confident that nothing globally important was going on with the refresh. Cheers, Anders.