From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: slow X11 frame creation and refresh after occlusion Date: Fri, 05 Feb 2021 10:53:51 +0100 Message-ID: <875z36suvk.fsf@gmail.com> References: <24567.20346.37031.450073@lwm.klanderman.net> <87eeivwae3.fsf@ericabrahamsen.net> <874kjejezr.fsf@lwm.klanderman.net> <875z3p7stg.fsf@ericabrahamsen.net> <8735yogb1z.fsf@lwm.klanderman.net> <878s8gug2k.fsf@gmail.com> <87tur3ecs0.fsf_-_@lwm.klanderman.net> <87v9biu7js.fsf@gmail.com> <87o8h6dxv7.fsf@lwm.klanderman.net> <877dnstbc5.fsf@gmail.com> <87a6sk4y5s.fsf@lwm.klanderman.net> <87eehws0ix.fsf@gmail.com> <877dnn4jsn.fsf@lwm.klanderman.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3716"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Greg Klanderman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 05 10:56:05 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 1l7xqP-0000rR-Ts for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Feb 2021 10:56:05 +0100 Original-Received: from localhost ([::1]:36094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7xqO-00056y-VB for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Feb 2021 04:56:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7xoP-0004Re-Mp for emacs-devel@gnu.org; Fri, 05 Feb 2021 04:54:01 -0500 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:42647) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7xoK-0006s4-Bk for emacs-devel@gnu.org; Fri, 05 Feb 2021 04:54:01 -0500 Original-Received: by mail-wr1-x434.google.com with SMTP id c4so6908288wru.9 for ; Fri, 05 Feb 2021 01:53:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=oQyjjYZhRTj2o53hTTt2wXuWdIaXyJhDHd9BdL08sTo=; b=LhMcMObt+VPvLkoBT5BidtrKhnL0WA7jxK64qWXN+bBGf1MKeDNaqzIEXvFCHB3hRE Clha3widY2B8HouWUyZeD+X4oGXXviBI4qj1Gf/jtc0UjJ013vw0l+ADPXE/NqtetuH4 ocy9+QicVJykiC2z0VZbvVxsC9Mbq51jKEQSS5ZSNl/JO5gqtD+raELhHYyBBxB8amal l0pC9hdoiPygRS3wbJSW3ySyhFJ87Igp0fO2nWWuiB2JfRn3fG/lKcc20eUP3AaPrQyV phk2+KNJKYYjF/uBpTm/IWN+diSonlA/sO9MQOPZyj+IUwJ/ll0ShZ1nwulvEC2ZC2/X KtQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=oQyjjYZhRTj2o53hTTt2wXuWdIaXyJhDHd9BdL08sTo=; b=YyvoLmW0H05uZZvQnxour5A7KNoBqqc98B5lyFAaEZfURVvkAOkKYGawaSck6HxEeb IzSYfYpIENl1VeRYn7Eop0EGiLgs8aK9MZj/wPmm4vlZlGCpGnuqLanlu1tf0tBB/fYl 3oqkwMNZv8zYUgkwVvrHvczG+1WgbKVyft3Cmqd6UzIvnqjNC7GFqWJYTCvWNJAt/BMb mFABtp6ouIIojKIKxo3SkiIakjTRk5O04Ri6J1VgfGFv2CQOBUW/NKEBZ4jeofD+arpK q68Kd/ayK5qdiVNP2yOQGfnun92KrsPEGAWu6rCazEVo2iko9KYYREyU6bsizDISDovB folA== X-Gm-Message-State: AOAM5327NHVsxrPyRRtzSO5+G5vMK6aIgj9m5C8iiZ8Tk89cGAt+gISd ZEoUNwr/jDf9MkCIqB2jH1YhPtCVwe+qSw== X-Google-Smtp-Source: ABdhPJz3o+tQDpJHVa397bScvtI5CGaB4kFtF1i8sZV8UcmYk3/2ORhveX0SDGt7ZBszbbLvnEiN2g== X-Received: by 2002:a5d:6c66:: with SMTP id r6mr4018304wrz.86.1612518833926; Fri, 05 Feb 2021 01:53:53 -0800 (PST) Original-Received: from rltb ([2a01:e34:ecfc:a861:69b6:6aaf:dbd3:8964]) by smtp.gmail.com with ESMTPSA id y11sm11165143wrh.16.2021.02.05.01.53.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 01:53:52 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: <877dnn4jsn.fsf@lwm.klanderman.net> (Greg Klanderman's message of "Thu, 04 Feb 2021 16:14:48 -0500") Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=rpluim@gmail.com; helo=mail-wr1-x434.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:263961 Archived-At: >>>>> On Thu, 04 Feb 2021 16:14:48 -0500, Greg Klanderman said: >>>>> On February 4, 2021 Robert Pluim wrote: >>>>> On Wed, 03 Feb 2021 16:52:15 -0500, Greg Klanderman said: >>>>> On February 1, 2021 Robert Pluim wrote: Greg> (frame-parameter nil 'font-backend) Greg> (xfthb x) Greg> any suggestions for settings I can try? >>>> Configure '--with-cairo'. I'm hoping that will be more efficient in >>>> terms of loading fonts. Greg> OK I will have a look. Is there any way to determine if font loa= ding Greg> is causing significant delay? And would that be an issue on Greg> subsequent to the first frame on a display? >> Emacs does a bunch of font-related stuff every time you create a new >> graphical frame. You could try running emacs under 'perf' to see if = it >> gives any insight. Greg> OK I built from git, --with-cairo (interestingly configure does n= ot Greg> fail if you specify --with-cairo but don't have the libraries Greg> installed) and am able to reproduce the issues I was seeing. It=CA=BCs an option, which means cairo is...optional :-) (I can=CA=BCt think offhand of an emacs configure option that causes configure to fail if it=CA=BCs not satisfied. Someone will now point one out). Greg> It looks like xterm.c has most of the X event handling, so maybe I Greg> will try to put in some debug prints to see what's going on, or t= ry Greg> one of the X event tracing programs, or 'perf' next.. Good luck. You might want to experiment with emacs -xrm "emacs.synchronous: true" That would make tracing stuff predictably easier. Robert