From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#32932: 27.0.50; render bugs on macOS Mojave Date: Mon, 10 Feb 2020 09:14:13 -0800 Message-ID: References: <20200203204408.GA59034@breton.holly.idiocy.org> <20200203213041.GC59034@breton.holly.idiocy.org> <20200207201802.GA7538@breton.holly.idiocy.org> <20200208141335.GA9391@breton.holly.idiocy.org> <20200210074404.GA44470@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78373"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Robert Pluim , 32932@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 10 18:15:21 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1j1CeV-000KGR-MT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Feb 2020 18:15:19 +0100 Original-Received: from localhost ([::1]:36658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1CeU-0003ZP-Gr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Feb 2020 12:15:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38243) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1CeF-0003ZF-Q7 for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 12:15:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1CeD-0007OK-Ty for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 12:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1CeD-0007Ny-Px for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 12:15:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j1CeD-0004uY-KO for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 12:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2020 17:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32932 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 32932-submit@debbugs.gnu.org id=B32932.158135487418834 (code B ref 32932); Mon, 10 Feb 2020 17:15:01 +0000 Original-Received: (at 32932) by debbugs.gnu.org; 10 Feb 2020 17:14:34 +0000 Original-Received: from localhost ([127.0.0.1]:55342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j1Cdl-0004ti-Rb for submit@debbugs.gnu.org; Mon, 10 Feb 2020 12:14:34 -0500 Original-Received: from mail-yb1-f196.google.com ([209.85.219.196]:39700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j1Cdk-0004tS-Aq for 32932@debbugs.gnu.org; Mon, 10 Feb 2020 12:14:32 -0500 Original-Received: by mail-yb1-f196.google.com with SMTP id x18so3909896ybk.6 for <32932@debbugs.gnu.org>; Mon, 10 Feb 2020 09:14:32 -0800 (PST) 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 :cc:content-transfer-encoding; bh=FZns5AfZt0/G8fNRtYFqwmjyk5892MkS8F8769doNaI=; b=NGu2erAgFX2vJKarPU3bKWk56LaJVwZaymMcHDOIbYDwTjz1NwEfgmAwwUTM7ze4Er gGdKwvItCDysf/cQoRXVdLk0Irgx0LpVWpjpygBJYmjRTX1U2SthmdiFMBFwf1gGsKOh XxdDM6zbTsPSsxeBCS+hrpTIegKx9LDMDcPXPw5hzDozICzTeeaNrrAkD3VdyHxqk+Jr LxpUZMEtstuIHUsFTvyumAA1hvEOq0fKGlF3wJltEJImSkukrmPHxb9y3b7M6lmlR03F +qjtWcpM63KOtMtSlt5CkP3wR6XUonlwrCS3zXmnwz3MwWMgMxCmWHOszx8r8yL3fSfC qRoA== 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:cc:content-transfer-encoding; bh=FZns5AfZt0/G8fNRtYFqwmjyk5892MkS8F8769doNaI=; b=iWX22t36sljXloSZiPs6s0oJyrwEoWiGUPwGR6ndvQKWOrkgDpOu19uYApz/Zb1UoV 9N01Y4LgITmddjHMAb51yUcukAz1PXz0vInWmFqsFDyE92zl4h6YR1EkT3agATbWxP1u ULyzVZZwYUC+o7t5AJ1eFRRDsil10cRFIVroSmGSqiPko80k8ls2F0gQLHSSYRbQtvMZ nYfj3+7a5MHY5YjZofqUXyBy371du1Cc35qlXCsug5xpzscId19YRnzKT/uOM28wX/Eg ZOeGAgScOsEUmGuw3iFnSsNlwroOtrF4LGZ4Q225Osh6m4YMlX69a8Aw0WiI+KV+1bLS jAFA== X-Gm-Message-State: APjAAAWLTofKSUoAG4O1JNsg2eUwg2GWA12njc+ui8cK3+UuvJRFnjB3 6J11V6lB5kukDLhOJW6GNTHQlqjztqu6Zg6886Y= X-Google-Smtp-Source: APXvYqw++6wO1IRRjxLeHP8+2C3e9czYnVd583bouMAJD/NUs/Kz5/b8fN+hCNg/LhhjnA3KTnS5qC8YiBWxEo0kV/M= X-Received: by 2002:a25:c64c:: with SMTP id k73mr2335517ybf.175.1581354865538; Mon, 10 Feb 2020 09:14:25 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175884 Archived-At: On Mon, Feb 10, 2020 at 7:21 AM Aaron Jensen wrote: > > On Sun, Feb 9, 2020 at 11:44 PM Alan Third wrote: > > > > Anyway, one last thing to try. I was reading up on how MacVim handled > > this same issue, and while their drawing techniques are quite > > different, they did find performance problems with CGLayers so > > switched to using CGImages. I=E2=80=99ve given that a go and I don=E2= =80=99t think > > this patch is quite as fast here as the CGLayer one, but it may be > > faster for you. > > 9.6s, which is around what 26 macport is, twice as slow as 27, but > about 1/4 the time it took with previous versions of 28. It also > doesn't seem to slow down too much (12.8) when I go full width. It's > still usable, for sure. Some more numbers for posterity, using: (defun scroll-up-benchmark () (interactive) (setq frames 0) (let ((oldgc gcs-done) (oldtime (float-time))) (condition-case nil (while t (setq frames (1+ frames)) (scroll-up) (redisplay)) (error (message "GCs: %d Elapsed time: %f seconds %d frames %f fps" (- gcs-done oldgc) (- (float-time) oldtime) frames (/ frames (- (float-time) oldtime))))))) Emacs 27: 123 FPS (this is faster than my previously reported times which were only the first run, the 2nd run was 2.16s) Emacs 28 with CGImage: 28 FPS Emacs 26 macport: 30 FPS So, it's still quite a bit slower, but it's usable and it likely won't glit= ch. Aaron