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, 28 May 2021 19:32:11 +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="20339"; 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 28 20:33:22 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 1lmhIP-00055D-9u for ged-emacs-devel@m.gmane-mx.org; Fri, 28 May 2021 20:33:21 +0200 Original-Received: from localhost ([::1]:41664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmhIN-0005hE-Tg for ged-emacs-devel@m.gmane-mx.org; Fri, 28 May 2021 14:33:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmhHb-00052U-N0 for emacs-devel@gnu.org; Fri, 28 May 2021 14:32:31 -0400 Original-Received: from outbound.soverin.net ([2a01:4f8:fff0:2d:8::218]:51843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmhHU-0000sD-PR for emacs-devel@gnu.org; Fri, 28 May 2021 14:32:31 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (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 0C7B06062D; Fri, 28 May 2021 18:32:16 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1622226735; bh=K19Ui1kEyC4txXFU97QU5f9pKA7u0S8ZH0v3aeKS2xE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pWUG3R9t/pdgAe3gOngEv+qWX+H7Tt2EZ7cb4A84r5K69eNC2yNwBjG/raaX5i5zX 882aMy4hvc+92gfxDyvklxuf8BGmBcqqcS3fzJsO5VMOSMSsuz2ybIRjSi62Zs48MG r5WvJ0bV0bC3f2ZWiOPgUMYpRYXFR+oR67r+JFtp2DFe5zev+mQ4DRPN1Yvx13qcd8 cq0yUoVypUjxIkF5VjQIz2XcpHTjM8WBVho7Iyz41vSXfP0YKO8bJG1r0E4DJQFgmA KGl30Zl5WPO4r1adcnQAdkfkDDd71Ni0TlFjOjAfcpkYatyv9W+gE5KRKadSiuMj1J dHa9ZZyTW7j0Q== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94.2) (envelope-from ) id 1lmhHI-000Iwk-0J; Fri, 28 May 2021 19:32:12 +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=2a01:4f8:fff0:2d:8::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:270014 Archived-At: On Fri, May 28, 2021 at 10:39:15AM -0700, Aaron Jensen wrote: > On Tue, May 25, 2021 at 11:23 PM Alan Third wrote: > > > > On Tue, May 25, 2021 at 05:32:09PM -0700, Aaron Jensen wrote: > > > On Tue, May 25, 2021 at 9:31 AM Aaron Jensen wrote: > > > > > > > > I don't know if it's something funky with my machine or not but I've > > > > noticed some stutters with this patch. As in, it appears to miss > > > > paints. I'll type a character and won't see it until I type something > > > > else. Is it possible that this patch could cause that? > > > > > > This stopped, so maybe it was something funky. So far, today, things > > > feel pretty good from a latency perspective. I haven't measured > > > anything yet. > > > > It probably could, I've seen something similar when I was testing > > something or other. It will be bypassing the viewWillDraw code that > > forces a redisplay, but I think in theory we shouldn't need it with > > this code. > > > > Oh, I suppose that might break the live resizing. But we can work that > > out if so. > > I've continued to use this and what I've noticed is that it's during > Zoom screen shares that stalls appear to happen. Zoom eats quite a bit > of CPU while screen sharing and Emacs will occasionally fail to paint > using this patch. When I'm not screen sharing I don't see the issue. > Even when I am, it's infrequent. Hmm, TBH I don't think I'd really recommend this patch over, say, 090ac3556c (the 2nd last commit in scratch/ns/surface-stuff). Unless it really does make a difference to input lag. -- Alan Third