[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redisplay and expose_frame
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: redisplay and expose_frame |
Date: |
Mon, 23 Jul 2018 18:58:22 +0900 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/25.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
On Sun, 22 Jul 2018 21:44:18 +0900,
Alan Third wrote:
> The background here is that I’m working on splitting the NS port’s GUI
> code into its own thread, and while working on that I noticed that
> Apple have deprecated the method we use to draw, so I thought that
> since I’m working with the code anyway, I may as well try to
> ‘modernise’ it.
A related thread can be found around
http://lists.gnu.org/archive/html/emacs-devel/2010-07/msg00821.html .
Mojave, the next version of macOS, already prohibits drawing outside
"drawRect:" by default if the executable was linked on that version.
An attempt to draw outside "drawRect:" triggers invalidation of all
the contents instead, and it is completely redrawn (even for a single
cursor movement) via "drawRect:" at the next cycle of the event loop.
This is kinda usable for small frames on recent machines, but not
efficient of course, especially for full screen frames.
YAMAMOTO Mitsuharu
address@hidden