From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Redisplay problems? Date: Tue, 25 Mar 2014 09:10:44 -0400 Message-ID: References: <83a9ck6lzf.fsf@gnu.org> <83eh1v5y53.fsf@gnu.org> <83y5024r1w.fsf@gnu.org> <83ior6489a.fsf@gnu.org> <834n2q43os.fsf@gnu.org> <83vbv62gr7.fsf@gnu.org> <83txao1c8n.fsf@gnu.org> <83k3bj1otm.fsf@gnu.org> <838urz1jjg.fsf@gnu.org> <834n2n0wbe.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395846894 1878 80.91.229.3 (26 Mar 2014 15:14:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2014 15:14:54 +0000 (UTC) Cc: rudalics@gmx.at, christian@defun.dk, cloos@jhcloos.com, kanru@kanru.info, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 26 16:15:00 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WSpXf-0004IG-RC for ged-emacs-devel@m.gmane.org; Wed, 26 Mar 2014 16:14:59 +0100 Original-Received: from localhost ([::1]:48595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSpXe-0000AH-V3 for ged-emacs-devel@m.gmane.org; Wed, 26 Mar 2014 11:14:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSpXT-0008HL-SD for emacs-devel@gnu.org; Wed, 26 Mar 2014 11:14:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSpXM-0008B1-9O for emacs-devel@gnu.org; Wed, 26 Mar 2014 11:14:47 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:35676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSpXM-0008As-4M; Wed, 26 Mar 2014 11:14:40 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s2QFEBms001376; Wed, 26 Mar 2014 11:14:17 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C353B66232; Tue, 25 Mar 2014 09:10:44 -0400 (EDT) In-Reply-To: <834n2n0wbe.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 25 Mar 2014 05:52:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4893=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4893> : inlines <648> : streams <1145006> : uri <1710583> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171001 Archived-At: >> > optimizations will not help, because you must redraw everything, and >> > AFAIK we don't currently have a redisplay mode where the portions of >> > matrices that were not recomputed are nevertheless redrawn. >> They'll be redrawn from the current matrices in response to the >> expose events. > Only if you insist on showing incorrect contents first, and if you can > arrange for the expose event to always be processed before the > redisplay. Hmm... I guess it depends on what kind of drawing operations we use. E.g. if the redisplay optimizations include usage of "block move" operations, then indeed, if the redisplay happens before the expose, we may end up moving not-yet-drawn (i.e. incorrect/garbage) pixels. Do we use things like "block move"? Stefan