From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: macOS metal rendering engine in mac port Date: Fri, 21 May 2021 08:35:35 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9406"; mail-complaints-to="usenet@ciao.gmane.io" Cc: YAMAMOTO Mitsuharu , emacs-devel@gnu.org To: Aaron Jensen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 21 09:36:28 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljzhr-0002FU-VS for ged-emacs-devel@m.gmane-mx.org; Fri, 21 May 2021 09:36:28 +0200 Original-Received: from localhost ([::1]:55762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljzhq-0008AX-O9 for ged-emacs-devel@m.gmane-mx.org; Fri, 21 May 2021 03:36:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljzhJ-0007W0-Qx for emacs-devel@gnu.org; Fri, 21 May 2021 03:35:53 -0400 Original-Received: from outbound.soverin.net ([116.202.65.218]:54553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljzhG-0003YS-KS for emacs-devel@gnu.org; Fri, 21 May 2021 03:35:53 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id B57C4600D6; Fri, 21 May 2021 07:35:38 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1621582537; bh=9UuEUDV7ITDfRNzZ/jsAG57zNfu2V3yX2SDQFbhaBRY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a5q9Y1CZW7oiWiFMJgmf1miTzDDjM7MpFU55OY4NR0S9lFFdCAJPbu5NMmWkt7OiN koU4hXm/HakculEtyGCneikNxOKBmrO01QG9xiDb75ctmRnZMvwQSP7bI5l4LKJ1XH wMXgSrmc5gtv0hfoDMc9PYrV6DUmhvWB2INvAh4qgcMoSpK0MBoi3GLnTI3t2K95Ed /U9YqEKwN3IgZXX71Nz608SBR7XD+N6VM3xlm1S14wpHe8K+qzf9M5P83C9fqz/WA7 DTL9Rn0xJD1Y7h9BP21IQcNnT/H4VJLP7X0z8rjtmqmNnoHq82V64UaFHm6wcqdEKI Vg+H40/H4TnwA== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94.2) (envelope-from ) id 1ljzh1-0006es-67; Fri, 21 May 2021 08:35:35 +0100 Mail-Followup-To: Alan Third , Aaron Jensen , emacs-devel@gnu.org, YAMAMOTO Mitsuharu Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=116.202.65.218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269537 Archived-At: On Thu, May 20, 2021 at 06:17:18PM -0700, Aaron Jensen wrote: > Hi, > > I recently went from working entirely on my laptop screen to working on a > large 5k2k monitor on macOS with Emacs 28. When I made that move, when > Emacs was sized to take up 2/3rds of the monitor there was severe typing > lag. Enough that typing in it felt really frustrating. I realized that > shrinking the frame size helped alleviate the typing lag significantly. > > Inspired by a recent reddit post, I decided to give the emacs macport a try > again with its metal rendering engine (--with-mac-metal). I'm pleasantly > surprised by its performance. It's very usable regardless of my window size. Out of interest, is it the metal renderer making the difference, or is the Mac port just better anyway? I only ask because on my Mac enabling metal rendering results in a *much* lower frame rate (although whether that equates to higher input lag I don't know). > I'm curious if now might be a good time to consider bringing over at least > this rendering engine from the mac port and making it a part of Emacs > proper. I'm not familiar with all of the reasons for keeping the mac port > separate so maybe this whole thing is a non-starter, but I wanted to raise > it because it's a real quality of life improvement on larger/higher dpi > screens. At that level the two ports don't really look alike, so it's not like it's just a case of copying the relevant code over. What might be helpful is to profile to find out what's slowing the NS port down. -- Alan Third