From: Adrian Robert <adrian.b.robert@gmail.com>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: 2530@emacsbugs.donarmstrong.com,
David Reitter <david.reitter@gmail.com>,
Chong Yidong <cyd@stupidchicken.com>,
Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: 23/NS: redraws according to mouse-face are slow
Date: Wed, 6 May 2009 08:55:36 +0700 [thread overview]
Message-ID: <B2B56BBA-6285-48DE-8C95-3BBCA4805146@gmail.com> (raw)
In-Reply-To: <wlprenukaa.wl%mituharu@math.s.chiba-u.ac.jp>
On May 6, 2009, at 7:50 AM, YAMAMOTO Mitsuharu wrote:
>>>>>> On Tue, 5 May 2009 17:36:31 +0700, Adrian Robert
>>>>>> <adrian.b.robert@gmail.com> 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.
My assumption was that it is legal to call draw_glyph_string()
outside of an update_begin()-end() pair. So draw_glyph_string() must
be able to operate in "self-contained" mode, which and the flush is
needed. The same logic holds for other RIF functions -- that they
can either be called in one-shot mode or in batch mode (inside update
begin-end). In the latter case, focus/unfocus reflect the batching
by holding screen flush until end.
Emacs core seems to batch most/all other sets of operations done at
once as part of a single redisplay.
It may be that screen update batching is handled implicitly by the
window system for X, so the distinction doesn't get made in the code
there.
Some behavior in this area differs between MacOS and GNUstep (as may
be seen, e.g., from the ifdefs in ns_[un]focus]), so any changes made
should be tested on both platforms before committing.
next prev parent reply other threads:[~2009-05-06 1:55 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <BAF3A3D5-641B-45BA-9DA1-DC767D2D9ECE@gmail.com>
2009-04-20 18:01 ` 23/NS: redraws according to mouse-face are slow David Reitter
2009-04-24 3:27 ` Adrian Robert
2009-05-04 22:55 ` David Reitter
2009-05-04 23:24 ` Leo
2009-05-05 1:53 ` Chong Yidong
2009-05-05 3:37 ` David Reitter
2009-05-05 10:36 ` Adrian Robert
2009-05-05 14:13 ` Chong Yidong
2009-05-05 17:32 ` David Reitter
2016-01-14 5:08 ` bug#2530: " Andrew Hyatt
2016-01-14 20:34 ` Alan J Third
2016-01-14 21:00 ` David Reitter
2016-01-14 21:39 ` Christian Kruse
2016-01-15 7:38 ` Eli Zaretskii
2016-01-16 4:15 ` Andrew Hyatt
2009-05-06 1:47 ` Stefan Monnier
2009-05-06 7:40 ` YAMAMOTO Mitsuharu
2009-05-06 0:50 ` YAMAMOTO Mitsuharu
2009-05-06 1:55 ` Adrian Robert [this message]
2009-05-06 2:25 ` YAMAMOTO Mitsuharu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B2B56BBA-6285-48DE-8C95-3BBCA4805146@gmail.com \
--to=adrian.b.robert@gmail.com \
--cc=2530@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
--cc=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).