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: Sun, 2 Feb 2020 16:14:51 -0800 Message-ID: References: <2F867D49-6B1C-4CB5-A298-2A0E1BF45462@acm.org> <20200202134628.GB53430@breton.holly.idiocy.org> <20200202223052.GA53567@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="24319"; 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 03 01:16:14 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 1iyPPR-000679-Ua for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Feb 2020 01:16:13 +0100 Original-Received: from localhost ([::1]:60680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyPPQ-0006MG-NP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Feb 2020 19:16:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60819) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyPPI-0006M7-49 for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 19:16:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyPPF-0002pf-Ss for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 19:16:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyPPF-0002pO-Pf for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 19:16:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iyPPF-0000ls-Jw for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 19:16: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, 03 Feb 2020 00:16: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.15806889142909 (code B ref 32932); Mon, 03 Feb 2020 00:16:01 +0000 Original-Received: (at 32932) by debbugs.gnu.org; 3 Feb 2020 00:15:14 +0000 Original-Received: from localhost ([127.0.0.1]:40754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyPOS-0000ko-29 for submit@debbugs.gnu.org; Sun, 02 Feb 2020 19:15:14 -0500 Original-Received: from mail-yw1-f66.google.com ([209.85.161.66]:39520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyPOO-0000kU-6y for 32932@debbugs.gnu.org; Sun, 02 Feb 2020 19:15:10 -0500 Original-Received: by mail-yw1-f66.google.com with SMTP id h126so12081024ywc.6 for <32932@debbugs.gnu.org>; Sun, 02 Feb 2020 16:15:08 -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=kPdjvetk9uJ04uMxC5rI0Cqne5GGH4TZqIn/9IaV+SM=; b=Xgh3T5s5DuxYBw+GDXQiBEfqhOcffBG2HnCIWQGk5kjZw+9d61dohtakS3X3tzGL3q dFGHtn323bQdkayHyiuwOocgW2KbFMVTWsiv9Jfk1KFmPzysw5SuYIxIRZVh+TYtPlNz xpBKVZvpHtmDn6QmwfElCt3XLjNObmfWddYlW56+B2pvMAmPokMEHefjSCZaMicmHUii wRVCk2V2t4WpVU7EoWueAyr9XDndaLFX4tWxpF51YiPmd+jdaypMzsZyJLkM6aVWngT2 /5qnKPus1Id09TlB7yLpAIgPxwJABAauWNHP3vKN4+73ZFUo/UsM6IF96rsUDtX+3etc 1fJQ== 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=kPdjvetk9uJ04uMxC5rI0Cqne5GGH4TZqIn/9IaV+SM=; b=V8QgwC2aHE6Ej3rYufcTyb/e8pwgWHApYv8Dm7eVafl7TlNsXHTnCUjx6wQ7I53snl +L/UWfhpbtY053nuBynVxfRzV9LN6aUt6PN4e9bZ1yYHkGGXasvscHMtaSlYuDcK1Yga 2VTRxCapE5GwR/1vohe2G21xwQI/xXhi9cL1SeGiEvPqZEzHK08+9lk6zjkM5aymO+nT lBrwhLeiyRE+J3fYyDsb5t5SzVdw5Pw8mQaJLZJbRDOTwg72jOZWb8fYyfG9SsRDbzmu CxeNAH0bytWqJqEOUhVjYKjrahoJEkx9ylcQj6LjwIzoijjML+Pf+sld4O0fldaN/IJP wibQ== X-Gm-Message-State: APjAAAWHG3KolJm5BJXVppM2C+3WvgY/387DFopbgWEt6MuBiT+GO1Zw 7nenHAmcsQntzDesCoBd330+ROiCms2QlehhzXg= X-Google-Smtp-Source: APXvYqyCtzEp4ZjpDbURCEWoKc3kpFNB3y02QK10gs79kELcgLXWvZUw4Md/UAKCQ2VmbAvWWWZa/naLQazihhpOD9o= X-Received: by 2002:a81:3b57:: with SMTP id i84mr15637063ywa.356.1580688902681; Sun, 02 Feb 2020 16:15:02 -0800 (PST) In-Reply-To: <20200202223052.GA53567@breton.holly.idiocy.org> 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:175622 Archived-At: On Sun, Feb 2, 2020 at 2:30 PM Alan Third wrote: > > On Sun, Feb 02, 2020 at 08:49:44AM -0800, Aaron Jensen wrote: > > On Sun, Feb 2, 2020 at 5:42 AM Alan Third wrote: > > > > > > Out of interest, is the mac port fast under the same conditions? Here > > > their performance seems to be almost identical with the mac port only > > > fractionally faster, and their performance scales similarly with fram= e > > > size. > > > > For scrolling/full repaints the mac port is significantly faster, > > similar to repaint speed of cursor moves. With the patch, Emacs 28's > > full repaint when taking about 3/5s of my screen takes about 400ms > > whereas it's about 16.7ms (60fps) with mac port. Emacs 27 seems to > > paint even faster than that. > > Amazingly the attached patch is faster than the mac port on my machine > (13" retina macbook pro) in the scroll test. > > I can=E2=80=99t see that holding for your screen, though. Here are scroll test results in org.el: 28 with patch - 35s 27 - 4s 26 macport - 10.2s Question--how are you compiling locally? Maybe there are optimization flags that you're using that I'm not that's throwing off my comparison. I do this: export PATH=3D"/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" export LDFLAGS=3D"-g -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Deve= loper/SDKs/MacOSX.13.sdk/usr/lib -lxml2 -lz -lpthread -licucore" export CFLAGS=3D"-g -O0 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Deve= loper/SDKs/MacOSX.sdk/usr/include/libxml2 -I/usr/local/opt/imagemagick@6/include" export CXXFLAGS=3D"-g -O0" ./autogen.sh ./configure --enable-locallisppath=3D/usr/local/share/emacs/site-lisp \ --infodir=3D$EMACS_DIR/share/info/emacs \ --prefix=3D$EMACS_DIR \ --without-makeinfo make -j8 > So turns out you need to do some fancy=E2=80=90pants manoeuvres to scale > CGLayers correctly. They also appear to draw faster when correctly > scaled, presumably because it=E2=80=99s not having to scale everything wh= ile > drawing to the screen. Nice. > I know exactly what=E2=80=99s causing the glitching, but I=E2=80=99ll com= e back to > this tomorrow. Looking forward to hearing more.