From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: 23/NS: redraws according to mouse-face are slow Date: Wed, 06 May 2009 09:50:21 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <4383E9F6-9B66-4DA4-AA3C-D602EB059B97@gmail.com> <139B721E-A1B4-4256-B202-D4472C0331FB@gmail.com> <87d4aowc1l.fsf@cyd.mit.edu> <2E6E5869-2F70-4AF5-A917-7EA863D6BD42@gmail.com> <1ACB40A8-4422-4B9A-A0F7-FE0B9C738299@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1241571046 30709 80.91.229.12 (6 May 2009 00:50:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2009 00:50:46 +0000 (UTC) Cc: 2530@emacsbugs.donarmstrong.com, David Reitter , Chong Yidong , Ian Eure , Emacs-Devel devel To: Adrian Robert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 06 02:50:35 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M1VLG-0006Yj-NG for ged-emacs-devel@m.gmane.org; Wed, 06 May 2009 02:50:35 +0200 Original-Received: from localhost ([127.0.0.1]:51911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1VLG-0003WJ-1b for ged-emacs-devel@m.gmane.org; Tue, 05 May 2009 20:50:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1VLA-0003U9-3A for emacs-devel@gnu.org; Tue, 05 May 2009 20:50:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1VL5-0003R1-NN for emacs-devel@gnu.org; Tue, 05 May 2009 20:50:27 -0400 Original-Received: from [199.232.76.173] (port=33607 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1VL5-0003Qy-HR for emacs-devel@gnu.org; Tue, 05 May 2009 20:50:23 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:62986) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1VL4-00078o-SG for emacs-devel@gnu.org; Tue, 05 May 2009 20:50:23 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 1B6AE2C40; Wed, 6 May 2009 09:50:21 +0900 (JST) In-Reply-To: <1ACB40A8-4422-4B9A-A0F7-FE0B9C738299@gmail.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by monty-python.gnu.org: NetBSD 3.0 (DF) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110695 Archived-At: >>>>> On Tue, 5 May 2009 17:36:31 +0700, Adrian Robert said: > That ns_update_begin() acheives the same effect suggests that > perhaps the core mouse face code should do this (through the RIF). > ns_draw_glyph_string() is not slow for any other operations, despite > the fact that it is called with the same granularity > (same-face-glyph- run) everywhere, likely because the > update_begin()/end() batching is used. The effect of ns_update_begin seems to avoid -[NSWindow flushWindow] call (via ns_unfocus) for each ns_draw_glyph_string call. Does this frequent flushing necessary in the first place? Other terms don't seem to do flushing for each string drawing call. YAMAMOTO Mitsuharu mituharu@math.s.chib-u.ac.jp