From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#32932: 27.0.50; render bugs on macOS Mojave Date: Mon, 11 Nov 2019 18:16:22 +0000 Message-ID: <20191111181622.GA60950@breton.holly.idiocy.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="18234"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.0 (2019-05-25) Cc: 32932@debbugs.gnu.org To: rpluim@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 11 19:17:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iUEFV-0004c8-Mj for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Nov 2019 19:17:13 +0100 Original-Received: from localhost ([::1]:56122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUEFU-0003f1-0n for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Nov 2019 13:17:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58627) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUEFN-0003em-Lv for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2019 13:17:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUEFM-0006eC-Iq for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2019 13:17:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47149) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iUEFM-0006e6-DC for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2019 13:17:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iUEFK-0005M7-M9 for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2019 13:17:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Nov 2019 18:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32932 X-GNU-PR-Package: emacs Original-Received: via spool by 32932-submit@debbugs.gnu.org id=B32932.157349619420544 (code B ref 32932); Mon, 11 Nov 2019 18:17:02 +0000 Original-Received: (at 32932) by debbugs.gnu.org; 11 Nov 2019 18:16:34 +0000 Original-Received: from localhost ([127.0.0.1]:55970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUEEr-0005LI-Vh for submit@debbugs.gnu.org; Mon, 11 Nov 2019 13:16:34 -0500 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:34904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUEEq-0005L4-5Z for 32932@debbugs.gnu.org; Mon, 11 Nov 2019 13:16:32 -0500 Original-Received: by mail-wr1-f43.google.com with SMTP id s5so4614720wrw.2 for <32932@debbugs.gnu.org>; Mon, 11 Nov 2019 10:16:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=6e0W8aaHgmze8+jUm3p3bCsh7J0vfHdHt+PgXraOX/A=; b=lvF/M8tJ39Z60jjrcrsZO4fud3x1Aw6w2RxsP8F3NB+CpKl3xdO7BPeab9/BdsN1AY 8kscQI491j7Bgs/mPxnqRliBYyWE0uhJ+NR+5pnpoQcURVtP6iiSVBvKHRYtOPOHoWBR NE57kxwqhqLiXaecZ0NnNeJtTAkgo0K8PyYyGSesldR9idFqo7GoTVp3aUPRrO7UhzYW Y61PbIomJwbVE30ZqcPDfBdIBi6rsWzMwgBVIq7w5BYA7H+jt99PyQjnxMGgiOitvlrZ aJc1UfdhK0UxF5c1aLJ1g9shxSkaX8c/0nc77wifMlTZLJaToVuVZhHmVu5o4o3f3sbs cNgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=6e0W8aaHgmze8+jUm3p3bCsh7J0vfHdHt+PgXraOX/A=; b=fhALks5nKpFdPECprzMM7NzoRrzbsAhwGcqKiK2hCnynQS3WvcRUlZS2NdtDu1WLnU rnabViD/D+Jt9BsUgLCnLs54ZZmKZkbK05J5DbEm9SINh5Rm9+3Wg/B2I7YZFoXwA8Ff mi5jsZOGlqVM7KG6s7/jmwiVNBX4B6FIF3tk07mKW04K5B+sOqS0eOhDYcOWuU3Z3XFp 7hPKbDPSzQrUkA2r/iBE6Be9fkMWJQ3d11lwDI8ygMX3imlEGf4jEz3dJPapZsDifcds 3mahCaWkWFjwKSNmmpLTdtrWhg+RbE0ukFLPg5QYXY+D97OcL73pA8DHTA4dXrBSt6TU Bg4Q== X-Gm-Message-State: APjAAAVrpOTcG8JjSduVwGoJQH3QzMosAElE86xpgh/iyezaCHUwIMKD bvWEbIEpBojD9ZZ/ZpZdHn4= X-Google-Smtp-Source: APXvYqyldGn/JO05MWNyU/2gLvZxsYOM1US4R4T0LY25hb8wG+GA5HaaQ8QJr9b16IvHpnMmaU8cvQ== X-Received: by 2002:a5d:6944:: with SMTP id r4mr21128275wrw.238.1573496185941; Mon, 11 Nov 2019 10:16:25 -0800 (PST) Original-Received: from breton.holly.idiocy.org (92.40.249.83.threembb.co.uk. [92.40.249.83]) by smtp.gmail.com with ESMTPSA id h124sm272883wme.30.2019.11.11.10.16.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Nov 2019 10:16:24 -0800 (PST) Content-Disposition: inline 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:171435 Archived-At: Hi Robert, In reference to our quick chat over on reddit here’s some information on this work. I have a branch on the Emacs git repo called scratch/ns/draw-to-bitmap which contains my work on an alternative drawing scheme. It’s mostly the same as it was before I introduced changes for Mojave, but with the addition of drawing to a bitmap instead of directly to the frame. It’s a little out of date and needs a merge from master to bring it up to date. The main bit of the code is around the method createDrawingBufferWithRect in nsterm.m. It’s a simple bitmap and it’s very slow to draw to the screen (drawRect:). I think that there are things that can be done with layers and CGLayers, but I never managed to work out how it’s supposed to work, or if it’s even plausible. I don’t know if AppKit can draw directly to CGLayers. The Mac port uses a similar design, but I didn’t think the actual code was usable in the NS port, but I could be wrong. Ultimately, if we get this working I’d be happy to use the same method of drawing on pre‐Mojave macOS as GNUstep uses, so there are no concerns with backwards compatibility. The biggest issue on that front is that we can’t use clang features that aren’t also supported in GCC, which means no ObjC ‘blocks’, which I think rules out using Metal. Any questions, ask away, and thanks for offering to look at this, I hope you have better luck than me! -- Alan Third