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: Sat, 22 May 2021 14:20:34 -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="25769"; 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 Sat May 22 23:21:36 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 1lkZ3v-0006X1-Tn for ged-emacs-devel@m.gmane-mx.org; Sat, 22 May 2021 23:21:35 +0200 Original-Received: from localhost ([::1]:57820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkZ3v-0001hp-0i for ged-emacs-devel@m.gmane-mx.org; Sat, 22 May 2021 17:21:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkZ3B-0000bp-9s for emacs-devel@gnu.org; Sat, 22 May 2021 17:20:49 -0400 Original-Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:37878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkZ39-0001yO-Lg for emacs-devel@gnu.org; Sat, 22 May 2021 17:20:49 -0400 Original-Received: by mail-pj1-x1032.google.com with SMTP id gb21-20020a17090b0615b029015d1a863a91so9152283pjb.2 for ; Sat, 22 May 2021 14:20:47 -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=Hv9e2ekdOPA5JSRhla9gqRf+rOcxRyTN07/mUfE1hiI=; b=BjQkrz1Hk2nFL7JvlAUxjsTIXCUombe1MYc1RqwICfaZZ6CDb5s5jFM6AioK5oSVG7 qAxtJdLDdGrr8xHbIxYMawScWeZRtDPXa+oHTA23MkvtbnBbqJeEGrN5e5xj1rSrw0f6 CHRz64B5iE4WGFvUJ4+wHXtvjrmbh4xGcTIdEU2Zql8sYgz9W+JDnd1Z8oTIjLDfjlJj o+sQft5gHe9jVrWimPd4ZOBYZlj+CXC2O++6Oo7q9T8PjgCiuLAS5ng+x75z5lBTZTUc QngWtUVLX5gRYdw8KCMu766so1oW8t+MR055wIEL3ysrCLQ1oOg7JZxRYMXcE27R5jkU ZuAw== 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=Hv9e2ekdOPA5JSRhla9gqRf+rOcxRyTN07/mUfE1hiI=; b=rbDlJi1Rz+fr0Id8Cwk8J/AZ7fLZNf79SsnTiAsYyROd7On+BTIQfxEiWnkJLbPNOB +m+4F5fqr+klQpjP+pLzw+LUuLD0ti2nPxSW6nUnqJwWKDeeeYaNJjV9+oKNzeZoNG6U ycJ/3LYloHhClQPegA0Pt6nNpTVh+LhVlYSZaqBGh4OPcQqk0vmJex1ibmyy9jIKL4+d v9T15BNdGqEN+JFClcBG9Dpci6kLK8JiqbYLBXxwmyP3Dhkrt24/HYPSk9uHbUweU3gn 99/J3ivvudIy0G3Jx0PgJ1r3rKXcufIwWpoL+3XRS8sCqff5vJIKwXFEdNMCrJrsJ8y/ 2PEQ== X-Gm-Message-State: AOAM530UL0XHt8J6z5XZJtILQVAaKzi7kf0StCmS4/GsoYVXbXsYjpid XPennxmbMT802v7Q4ZtIw9/4/AJvJVBrxoFd/rA= X-Google-Smtp-Source: ABdhPJwzzbuDsAaBMHDS7MucD+Xs8oTowu9jxTXieV/m0mMYGEdkdFrHt1qkEZEXpwwj0RElO1WKkJPD4U4BAlRm9zs= X-Received: by 2002:a17:90a:9511:: with SMTP id t17mr17035245pjo.108.1621718446215; Sat, 22 May 2021 14:20:46 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=aaronjensen@gmail.com; helo=mail-pj1-x1032.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:269628 Archived-At: On Sat, May 22, 2021 at 12:57 PM Alan Third wrote: > > Well, I'm sure we can make that optimisation on the NS port too. ;) Hah > > Full screen frame, with line numbers (11k lines): > > > > Mac port: 2.88s > > emacs27-drawing branch: 4.42s > > master: 6.75s > > > > Full screen frame, no line numbers (11k lines): > > > > Mac port 2.24s > > emacs27-drawing branch: 3.13s > > master: 5.3s > > How can the Mac port only see a change of 0.6s while the NS port sees > a change of 1.3s, when the only change is turning line numbers on or > off? Line numbers performance should surely be mostly independent of > the UI toolkit? No idea. It seems to be percentage based more than fixed for whatever reason. I built emacs 27 w/ -g3 -O2 > You know, my benchmarking is all over the place. I literally just did > two runs at 11s and another two at 8.6s. Nothing changed. And I > regularly see a code change produce an improvement, then undoing the > change retaining the improvement. It's like rebuilding the exact same > code base produces a completely different performance result. > > I suspect my Mac rides the CPU frequency continuously or something. Mine are fairly consistent. I imagine hitting thermal would hurt though and Intel macs love to do that. What isn't consistent is typing experience. There are times when it's just like molasses but I can't necessarily reproduce that with benchmarks. I wonder if the separate threaded IO from the mac port helps make things feel more consistent in some way. It'd be great to try an emacs-28 with the 27+flicker patch rendering. I'd be curious how that'd feel w/ native comp. Maybe that'd make enough of a difference for me on this screen. Thanks, Aaron