From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Stephane Travostino" Newsgroups: gmane.emacs.bugs Subject: bug#72960: 31.0.50; PGTK Wayland exhibits more lag than X11 version Date: Mon, 02 Sep 2024 13:12:53 +0100 Message-ID: References: <4086d678-7a60-4b87-8c73-c5c9939f05e8@app.fastmail.com> <86mskq8dlm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2624"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72960@debbugs.gnu.org To: "Eli Zaretskii" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 02 14:43:42 2024 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 1sl6PF-0000TX-JJ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Sep 2024 14:43:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl6Os-0002N1-Ax; Mon, 02 Sep 2024 08:43:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sl6Oc-0002Lr-8S for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2024 08:43:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sl6Ob-00022j-Va for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2024 08:43:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:MIME-Version:To:Subject; bh=h9Ob4//9yZpVxcM+6buoN7Tq8GoG6JG4inhB0EZn9RQ=; b=gHUWBXID+s3ZnX/sevBVg8A1t9heecK70pzlh5nDhhEfu+jHJPTIrmslm8y+53hlFMSCKLgb0Xr9wzHhQ878zSiDeT+vcTU8hl4+cUC4bpOoxpnxWy1N+5kj7/t4ou/tqSUKpmMYIA1eSC7+RAKqNIm7F3QzuDoM0l+g4JnZAmAVdiETTanieQqzv9TLcE8WuPx3p5zRM/25ud05epSimLUq6OtFUf5YZQ54dfidwA+/LyI/uJDwwCvJrtzThGchHI1CrTkfEkbnNy5ZF4P48uaLuL4yYBhw/6L0r84D10B6ukb2phWMNG+K88uQaKo98TQ9ReW8G0UH+fg84DroyQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sl6Pa-00029u-P2 for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2024 08:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Stephane Travostino" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Sep 2024 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72960 X-GNU-PR-Package: emacs Original-Received: via spool by 72960-submit@debbugs.gnu.org id=B72960.17252809998092 (code B ref 72960); Mon, 02 Sep 2024 12:44:02 +0000 Original-Received: (at 72960) by debbugs.gnu.org; 2 Sep 2024 12:43:19 +0000 Original-Received: from localhost ([127.0.0.1]:47454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sl6Os-00026P-LQ for submit@debbugs.gnu.org; Mon, 02 Sep 2024 08:43:19 -0400 Original-Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]:58087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sl5wq-0000b1-1s for 72960@debbugs.gnu.org; Mon, 02 Sep 2024 08:14:30 -0400 Original-Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id B42C4114027B; Mon, 2 Sep 2024 08:13:13 -0400 (EDT) Original-Received: from phl-imap-10 ([10.202.2.85]) by phl-compute-03.internal (MEProxy); Mon, 02 Sep 2024 08:13:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=combo.cc; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1725279193; x=1725365593; bh=h9Ob4//9yZpVxcM+6buoN7Tq8GoG6JG4inhB0EZn9RQ=; b= k+oAIHg548pb7HxRDXs2jJMDD/ZE5tB2x1JmjAfI6C/pkzSvySCLeJhqMTl5NaLv F/iaO8plvMDt+J7Q+c6fCA7S+KE+LtNhrToSISk8QY8TfddlVSEJh9m4K4ctI/Lo XkYu58PRIE0/Z+u0PQyzzAqLIqMpMEXl0z6qVEa4TqZBeU1hwjporsuxl5psCQQM znaN8CBvEM7goZ05T1h0UkrCOe3kuwyrTg0L6rU421i9ejY37QYCsiqHoJljxMHm fP1MOqmJCFW9AJ2SO6hqlIJiTLLzy5jwXjgvDEyEA1l4EeddvAYFFisaLrxhf6KJ LEL40uCaYAFiDrP2kyrPow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1725279193; x= 1725365593; bh=h9Ob4//9yZpVxcM+6buoN7Tq8GoG6JG4inhB0EZn9RQ=; b=V /hkPEy2GQGSv5F7LbiUKFE+yzKptwJe2m8wTKevh2AlipyNB6FN7kZsHm1h/nbgN ZCyNZSYJjjJi6lJQ4Op3Ftd8zxkbZ9kkHb19CU8qgO528uOtSvhZwTb70DhFPUlu 0jj3eFQva2vLnNSeKZdGOiyfeugihtKoLlPSHTAGLwe2QzuBPVHcFvJlzcN4fzq7 09eOCmSULGXEU2uyH2XaqdrV8cj5OsZyqH1vu4kGGW0AhDlkKuDl4MEiUxtyhhAW vJ20+QF3PTacKUnH2MQk4a/Wj6vIfZ7Wg4y7K8fz/AzapsPg9XLX71MuBQMmOS6U 8cEHZzeyaN5vBnySnikYw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudehfedggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpefoggffhffvvefk jghfufgtgfesthejredtredttdenucfhrhhomhepfdfuthgvphhhrghnvgcuvfhrrghvoh hsthhinhhofdcuoehsphhhsegtohhmsghordgttgeqnecuggftrfgrthhtvghrnhepveeg geejgffhtdefkedvfedufffgieelieefhefhueehleefvddvvedtiefhgeefnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhphhestghomhgs ohdrtggtpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopeejvdeliedtseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihii sehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i4629447b:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5ED233C0066; Mon, 2 Sep 2024 08:13:13 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <86mskq8dlm.fsf@gnu.org> X-Mailman-Approved-At: Mon, 02 Sep 2024 08:43:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291106 Archived-At: On Mon, 2 Sep 2024, at 13:05, Eli Zaretskii wrote: >> Date: Mon, 02 Sep 2024 10:18:03 +0100 >> From: "Stephane Travostino" >> >> Heavy operations, such as scrolling back and forth in a buffer, are >> noticeably laggier, for lack of better word, in the PGTK/Wayland version >> than the X11, both tested on KDE in Wayland mode. >> >> Affects both 29.2 and the latest HEAD compiled a few days ago. >> >> I am unsure whether it is a KDE or Emacs problem. >> >> Running on an AMD RX 6800 XT graphics card on a HiDPI 4k screen at 2x >> scaling. > > AFAIU, this is a problem with GTK input methods. From PROBLEMS: > > *** Emacs built with GTK lags in its response to keyboard input. > This can happen when input methods are used. It happens because Emacs > behaves in an unconventional way with respect to GTK input methods: it > registers to receive keyboard input as unprocessed key events with > metadata (as opposed to receiving them as text strings). Most GTK > programs use the latter approach, so some modern input methods have > bugs and misbehave when faced with the way Emacs does it. > > A workaround is to set GTK_IM_MODULE=none in the environment, or maybe > find a different input method without these problems. Thank you, though without more scientific methods of measuring latency I can't tell if that helps or not. I noticed I had pixel precision scrolling mode on and that contributed a large part to that feeling of lag compared to other programs. If Firefox is able to smooth scroll at 60 Hz, I would say empirically Emacs PGTK would scroll at 15 Hz, making navigation in the buffer a choppy affair.