emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: macOS metal rendering engine in mac port


From: Aaron Jensen
Subject: Re: macOS metal rendering engine in mac port
Date: Fri, 21 May 2021 16:02:07 -0700

Emacs 27 NS: 578


Aaron

On Fri, May 21, 2021 at 10:39 AM Alan Third <alan@idiocy.org> wrote:
>
> Yes, and I don't think you need to do anything special with
> optimisation levels.
>
> Load instruments.app, choose "time profiler", then at the top select
> emacs and hit the record button. Do whatever you do, then hit the stop
> button, and the window below should give some indication of where it
> is spending the most time. I was thinking that it would be in the copy
> from one surface to the other, but I profiled my own build and it
> appears to be negligible. OTOH, since your surfaces are much bigger
> that might be it.
>
> I've tried reducing the amount of times the NS port updates the
> screen, although I don't think I've really been very successful, but
> you may as well give it a go and see if it makes any difference.
> Please try the scratch/ns/surface-stuff branch.

I got 378 characters on this branch, which is a little faster.
I should also note that on Emacs 27 NS I get 578 characters, which is
slightly faster than Emacs mac port.

I've attached a couple profiles of the surface stuff branch. Of note
is that display-line-number-mode seems to be a massive culprit in
slowing this down. Turning that off about gives me about 50% more
performance. The rest of what takes time appears to be mem copies,
which makes sense that that would scale w/ screen size.


>
> And for a laugh try this patch on top of that branch. It's not
> suitable for general use, but it seems a bit faster here.

This actually causes Emacs not to paint for me.

Attachment: Archive.zip
Description: Zip archive


reply via email to

[Prev in Thread] Current Thread [Next in Thread]