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: Thu, 04 Feb 2021 09:24:54 +0100 Message-ID: <87eehws0ix.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20206"; 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 Thu Feb 04 09:25:56 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 1l7Zxc-0005Bn-BA for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Feb 2021 09:25:56 +0100 Original-Received: from localhost ([::1]:46468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7Zxb-0001sK-DY for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Feb 2021 03:25:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7Zwi-0001Cx-4r for emacs-devel@gnu.org; Thu, 04 Feb 2021 03:25:00 -0500 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:46321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7Zwg-0008Cp-Ei for emacs-devel@gnu.org; Thu, 04 Feb 2021 03:24:59 -0500 Original-Received: by mail-wr1-x42e.google.com with SMTP id q7so2346088wre.13 for ; Thu, 04 Feb 2021 00:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=Zqlm2I1ByOCDWWee1Ok1UlCUGHa+WU4TCoOtRpCUU3M=; b=n3EUeHEuflPsjtgSGffMoU4/QsGGN+YVTSRxh5Vlmf4+3PkMoJ9DnL2HuXWRq2iAU1 phKgjv1WCFHCBAAk6R3WMpei42IYJlhmwvJy3muo2D7PY8/vFTEmRRvmFLlf5FO60oFO sp/cWTHc5Iob4XmDnVbyMWLnQdrv74wO238njnAcadrYrqrQv4oJDNtiBt7yNqHlXFww YYtvziSGVVCnBXJJL3YmzRi/i9n2i+LrJontGFPpd8/A2T7OMT2V/C6tHjM2CJL8lnNl XKoaioXa8HBNndZkcnYLyI9/luNo2r0CS8eQb5AxeHrWE32WPzd5a4qKm2gukVp3IheO RvJw== 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:date:in-reply-to :message-id:mime-version; bh=Zqlm2I1ByOCDWWee1Ok1UlCUGHa+WU4TCoOtRpCUU3M=; b=HuHNXUHxCwE3/6ve3ULWvOm71lsH4LRelGFFRNpcKQmOYzsCtxn1AHajNXsFGETGxe lwne+USvhh/O+2myuv3qGd4CyhAOhbIarCBLVk1hsYJfpQv78R7XGBCLhk6KUSv9G7Sc rFSaTctiaVEQ9Tb8FJYFKCyY/blOcRWnP7sJ02Kphf1BAeaQ7S9rXjtHQ+onT3I5K5qg gT4Nzu/80pt50moFrbHCmS/ZvmZdaFq8vN221hcuCIC70cQpN0G+CFDuYHEEkq5piOJY FA5Be3WZsJ3q4k2Fssf3/iUoEcvhmkO8YHehyNmYUnzHnULIdqB51XSr/tLr9omKCKru rPYQ== X-Gm-Message-State: AOAM530yLjENqdsWbXtYuRUFm0MhRjSkdiygVqgRyo2QYvYBVBMZHoNN Yqtqtndf3BJBNuuOUqEJ/Y058nFnkMwDuQ== X-Google-Smtp-Source: ABdhPJwFkstM/WwNVsJimgPcf4+V8seAPfkwpFRJN5tOuUzsNSWu3sN087+eJR45V7wcCmrt2x5/5g== X-Received: by 2002:a05:6000:1245:: with SMTP id j5mr7859991wrx.333.1612427096376; Thu, 04 Feb 2021 00:24:56 -0800 (PST) Original-Received: from rltb ([2a01:e34:ecfc:a861:69b6:6aaf:dbd3:8964]) by smtp.gmail.com with ESMTPSA id w2sm5749635wmg.27.2021.02.04.00.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 00:24:55 -0800 (PST) In-Reply-To: <87a6sk4y5s.fsf@lwm.klanderman.net> (Greg Klanderman's message of "Wed, 03 Feb 2021 16:52:15 -0500") Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42e.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:263856 Archived-At: >>>>> 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 loading 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> (emacs-version) Greg> "GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) Greg> of 2020-12-21, modified by Debian" >> Definitely not in there, it's master-only: >> $ git log --author rpluim@gmail.com --grep font >> commit 20d13e424fb2e7dcc5e6ea1848bca4376d22bab1 >> Author: Robert Pluim >> Date: Fri Sep 11 10:29:24 2020 +0200 >> Stop querying for fonts as soon as a match is found Greg> OK, another good pointer. Greg> Did you have any ideas on my other email, and the finding that the Greg> 30-60 sec of lossage I am seeing when dragging one emacs frame over Greg> another seems related to not running a full blown desktop environment? That one I have no idea about. Robert