all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: "Charles A. Roelli" <charles@aurox.ch>
Cc: emacs-devel@gnu.org
Subject: Re: Change to NS drawing routines
Date: Wed, 15 Aug 2018 21:42:27 +0100	[thread overview]
Message-ID: <20180815204227.GA20551@breton.holly.idiocy.org> (raw)
In-Reply-To: <m2in4b4etq.fsf@aurox.ch>

On Wed, Aug 15, 2018 at 09:20:17PM +0200, Charles A. Roelli wrote:
> 
> By the way, I noticed that one of the problems YAMAMOTO Mitsuharu
> discovered with the current way of drawing is fixed in your branch:
> 
> > Link:		https://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00440.html
> >
> > (Another problem with drawing outside the "expose" handler can be
> > observed with the NS port on Mac OS X 10.6 and earlier: the resize
> > handle at the right bottom corner gets overwritten.)
> 
> It's a small detail, but neat nevertheless.

Ah, nice. My version of macOS doesn’t display that handle, so I was
unaware. Although now I look the rounded corners at the bottom no
longer disappear when the frame is resized. Cool. :)

> I tried M-x benchmark RET (redisplay) RET in master and in
> scratch/ns-drawing, with scratch/ns-drawing often being faster in the
> middle of big files like xdisp.c.  But I don't remember if I messed
> with compiler options recently, so it would be good if somebody else
> could check.

I see a slight improvement too, but it’s really too small to measure.
Expanding on your test above I tried this with benchmark from the top of
xdisp.c:

(dotimes (n 100) (scroll-up) (redisplay))

But now I try it again the improvement I saw has disappeared. If there
is a change in performance it appears to be too small to reliably
measure. Which is, if not good, at least not bad. :)

I’ve just realised this has reintroduced an annoying flicker on resize
(bug#30699) if you run something like:

    (dotimes (n 10)
      (sit-for 0.3)
      (set-frame-width nil (+ n 80)))

-- 
Alan Third



  reply	other threads:[~2018-08-15 20:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-11 14:06 Change to NS drawing routines Alan Third
2018-08-12 10:47 ` Charles A. Roelli
2018-08-13 18:46   ` Alan Third
2018-08-13 19:10     ` Eli Zaretskii
2018-08-13 19:36       ` Alan Third
2018-08-14 14:50         ` Eli Zaretskii
2018-08-15 20:43           ` Alan Third
2018-08-15 19:20     ` Charles A. Roelli
2018-08-15 20:42       ` Alan Third [this message]
2018-08-13  8:24 ` Nick Helm
2018-08-13  9:15 ` Van L

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180815204227.GA20551@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=charles@aurox.ch \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.