From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28695: 26.0.60; Rendering lag spikes caused by double-buffering on Linux Date: Mon, 09 Oct 2017 17:03:37 +0300 Message-ID: <83shesquyu.fsf@gnu.org> References: <8760bvd2w7.fsf@bryan.sh> <59D4A431.7010801@gmx.at> <831smjz2b2.fsf@gnu.org> <874lrfcg4s.fsf@bryan.sh> <1931afeb-51cb-89c9-72ff-c8a062fecba7@yandex.ru> <0e4817c9-f3f3-875d-2c81-97821c839a29@yandex.ru> <83376vv0gm.fsf@gnu.org> <859fe715-e455-128d-5fca-6f2df4ad0eaf@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1507557948 12677 195.159.176.226 (9 Oct 2017 14:05:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Oct 2017 14:05:48 +0000 (UTC) Cc: npostavs@users.sourceforge.net, 28695@debbugs.gnu.org, bryan@bryan.sh To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 09 16:05:33 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1YgQ-0008RJ-0Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Oct 2017 16:05:26 +0200 Original-Received: from localhost ([::1]:58091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1YgR-00031c-84 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Oct 2017 10:05:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1Yg8-0002qB-M4 for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 10:05:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1Yg3-00045E-LN for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 10:05:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49721) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1Yg3-000456-Ix for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 10:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e1Yg3-0003sR-8w for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 10:05:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Oct 2017 14:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28695 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28695-submit@debbugs.gnu.org id=B28695.150755784714782 (code B ref 28695); Mon, 09 Oct 2017 14:05:03 +0000 Original-Received: (at 28695) by debbugs.gnu.org; 9 Oct 2017 14:04:07 +0000 Original-Received: from localhost ([127.0.0.1]:58395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1Yf5-0003qG-JG for submit@debbugs.gnu.org; Mon, 09 Oct 2017 10:04:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1Yf3-0003pn-Kv for 28695@debbugs.gnu.org; Mon, 09 Oct 2017 10:04:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1Yeu-0003As-D9 for 28695@debbugs.gnu.org; Mon, 09 Oct 2017 10:03:56 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1Yeu-0003Al-A4; Mon, 09 Oct 2017 10:03:52 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1054 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e1Yet-0004cY-Rk; Mon, 09 Oct 2017 10:03:52 -0400 In-reply-to: <859fe715-e455-128d-5fca-6f2df4ad0eaf@yandex.ru> (message from Dmitry Gutov on Mon, 9 Oct 2017 16:53:18 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 208.118.235.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:138128 Archived-At: > Cc: npostavs@users.sourceforge.net, bryan@bryan.sh, 28695@debbugs.gnu.org > From: Dmitry Gutov > Date: Mon, 9 Oct 2017 16:53:18 +0300 > > On 10/7/17 11:14 AM, Eli Zaretskii wrote: > > > Can some of you use a tool like perf to see whether the time taken by > > XdbeSwapBuffers (called from xterm.c:show_back_buffer) indeed grows > > significantly when going from the 2K class of resolutions to the 4K > > class? And if it isn't XdbeSwapBuffers, then what takes most of the > > time which causes that "stutter"? > > With some pointers on how to use perf, I'd be happy to do that I think this page (which you probably already know about) is a good starting point: http://www.brendangregg.com/perf.html > (or even without, if you're willing to wait). There's no rush, so please take your time. > But I'm not seeing a qualitative difference between a 4K fullscreen > Emacs, a half-screen Emacs, or even Emacs with window resized further > down: there are still minor stutters here. So I'm probably not the best > person for this experiment. Well, you saw a difference between a 4K display and a 2K display, didn't you? All we need is to compare 2 situations and see where's the extra time spent. Maybe Bryan could also try the profile, as he reported a significant difference. Thanks.