From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.devel Subject: Re: macOS metal rendering engine in mac port Date: Fri, 28 May 2021 12:00:43 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5367"; mail-complaints-to="usenet@ciao.gmane.io" To: Alan Third , Aaron Jensen , emacs-devel@gnu.org, YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 28 21:03:03 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 1lmhl9-000189-FE for ged-emacs-devel@m.gmane-mx.org; Fri, 28 May 2021 21:03:03 +0200 Original-Received: from localhost ([::1]:54990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmhl7-0007sw-Nn for ged-emacs-devel@m.gmane-mx.org; Fri, 28 May 2021 15:03:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmhj9-0006Qt-Bs for emacs-devel@gnu.org; Fri, 28 May 2021 15:00:59 -0400 Original-Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:42610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmhj7-0003dx-8U for emacs-devel@gnu.org; Fri, 28 May 2021 15:00:58 -0400 Original-Received: by mail-pj1-x1029.google.com with SMTP id m8-20020a17090a4148b029015fc5d36343so3067666pjg.1 for ; Fri, 28 May 2021 12:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=/5wJUC0mMNA1E6mI2Gratovcl6cthuruVhwLbqZAfJM=; b=Jn0t4kbc15EdaVnfqtNcgYGRGorSube6q48ieKebqTWQakil0gKF4Ry/gLFEe+mQgk 1vxhBCPo/exu2Gh2NsbiQDu5OLrt4cBYhh/8sHa0Ch8epIvHcRHGKnLCG+OXJs2u8TVZ aeomLR8mFtWakMtOVanj/9RGDBxMJaZync65x1MeSnY96SJcsN1j6J6D5qQhXAI2j2om jvFQImBXTExskl/sjWbwJnsHobeMdC8yj8TIYX6CFhRDy5sHZlJB+10loQHU7x19plnc G9FvDivU7e292vE/HQvh+M0L6UEUI8W7M4Ez7dBgqmrOU6iglglJbsnLAP+iiSJHuF99 s6yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=/5wJUC0mMNA1E6mI2Gratovcl6cthuruVhwLbqZAfJM=; b=ADzDr6MbFz8NrANV1fgHo58IRgJQMD+2LXScfPavOKpU0qG5kZobw3NIzg39hOKN/P gu8RF17hdScfSYrCpiZGgbG576FqjUHKpQpSJ0xK3gKI8cDzqWU//ceffQBXdpa0Hlum VcNZowluD2kImDN9Yhkhj/Y0KBxC1THcrhXpfNV+xb6NVEDSbkbr/TKqIP8ftC9mfEUW L3zzI5YSqvxxQwsJxDe+W0/NYiQmAN4L/dDqZadXsLuYTCLGXAC5vGf5sMWQ/QdK6rCO ipEHLESIQns0rSvZYRn3DxvQTztrxnFtcUX6Al7vi8J484Eu3Dw+pi3dML7vDrcNuvBz kg9g== X-Gm-Message-State: AOAM531mgbnqiccCK6ASz0GCYWqC9WsIsVb3aK7f96ivTQzcPs5ZTIpj m8Ky7lARsCDpawZYsXNwGadxbdqwFvz5J8a3dPE= X-Google-Smtp-Source: ABdhPJwK0JSElJB+qaa6V14R7qg1tATQqWdHCS/vLjiwrjRn+TnTCDLY+htOKl5amLD4PFv9l6cuHvM2eJf2TqyPKpc= X-Received: by 2002:a17:90a:9511:: with SMTP id t17mr6033603pjo.108.1622228455165; Fri, 28 May 2021 12:00:55 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=aaronjensen@gmail.com; helo=mail-pj1-x1029.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:270018 Archived-At: On Fri, May 28, 2021 at 11:32 AM Alan Third wrote: > > 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. Okay, I'll run with that for a while. And you think this is better than the last commit of the surface-stuff branch? Aaron