unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Change to NS drawing routines
@ 2018-08-11 14:06 Alan Third
  2018-08-12 10:47 ` Charles A. Roelli
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Alan Third @ 2018-08-11 14:06 UTC (permalink / raw)
  To: emacs-devel

The next version of macOS deprecates the method we use in the NS port
to draw to the screen, specifically marking an NSView as ‘focused’ and
then drawing to it. The ‘modern’ way is to only draw from within the
‘drawRect:’ method where ‘focusing’ is already done for you. There is
some previous discussion here:

https://lists.gnu.org/archive/html/emacs-devel/2018-07/msg00799.html

I’ve created a new branch called scratch/ns-drawing which only draws
from within drawRect by marking areas that are to be drawn as ‘dirty’
and then, at the end of redisplay, forcing an update, which uses
drawRect and expose_frame to redraw the relevant bits of the frame.

I believe this is a somewhat controversial approach.

My experience so far is that performance is not noticeably slower than
master, however if someone with a slower Mac could try it that would
be helpful. 
-- 
Alan Third



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-08-15 20:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2018-08-13  8:24 ` Nick Helm
2018-08-13  9:15 ` Van L

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).