From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Amos Bird Newsgroups: gmane.emacs.help Subject: Re: unpleasant flickering in terminal emacs Date: Fri, 27 Apr 2018 20:23:07 +0800 Message-ID: <87o9i47s9g.fsf@gmail.com> References: <87po2k7tdr.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1524832054 15940 195.159.176.226 (27 Apr 2018 12:27:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2018 12:27:34 +0000 (UTC) User-Agent: mu4e 1.0-alpha3; emacs 27.0.50 Cc: help-gnu-emacs To: Tim Visher Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 27 14:27:29 2018 Return-path: Envelope-to: geh-help-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 1fC2TI-00041w-69 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2018 14:27:28 +0200 Original-Received: from localhost ([::1]:47825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fC2VP-0007SX-05 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2018 08:29:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fC2PF-0001xC-8p for help-gnu-emacs@gnu.org; Fri, 27 Apr 2018 08:23:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fC2PC-0002go-3t for help-gnu-emacs@gnu.org; Fri, 27 Apr 2018 08:23:17 -0400 Original-Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:40553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fC2PB-0002gc-UD for help-gnu-emacs@gnu.org; Fri, 27 Apr 2018 08:23:14 -0400 Original-Received: by mail-pf0-x232.google.com with SMTP id f189so1388016pfa.7 for ; Fri, 27 Apr 2018 05:23:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=jhy7xKva2EWgXXr5zDsOwqGyoekGvi/1X4A6R+EgLrk=; b=kqaGcX9OCx9l/Hrx4vN/Ci6voCollKtughRBEUmM7OSMfTMQN8jqG/4DxOADxIuQ5H 6tKmgVzWJWLMRF/GT4QgCVKx8D/T8ZAUR5uj0pJbSj5OzeTE8zAQYx7OMm3FeMxeJeOZ S/Rmdnciv1bIWQQSs7W+L1qkDjB+D9fmOe95Ubc9dmwpCUcc7Z2x+PODPgu2SLmm8ARc uZMvAfaewfHNXxT404MhrQmRWU1hMvSjtfea5M8UKTnLUpU3tY845NlnbXOqpUmoKpTC +nNHlNKhREWa/7itktEUrOa2qqfQDycq9xhz/GpxUkouKdfTD91BB7GcvgmtUP0zb70W b1CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=jhy7xKva2EWgXXr5zDsOwqGyoekGvi/1X4A6R+EgLrk=; b=NAoisoROhBoQfjnGffHqX6Ts4B/OdclWcozRS1Olf6qWkktQGA3pizUOjtEkCLUNDy V3Or4gOwaIV65AzN8G8IUAW3A7dBQONc5pVYsjuAyAd6iD/zZ3IHh7k0QBWGc1Hjww3O OsrJC3bFpzduLxlQDhMo/5ZGQjTDNinLnPZhW9Jgw37Lohw5LETEujz/Gs/BIBJs99nZ U+/goaa2xvjHYb/jYeHPyAany3ZJI/KMjz5z2sPNp9N5KT8zPSTV9PaCJPIkSHQBhmkk 4rYC/2g8G9kP9ovB1LWHqcD4tPLwqixod+MlPBZOxAV/yWbYtbY1mVH+ca13UaYeaN+Y 5ecg== X-Gm-Message-State: ALQs6tD/9l0kHyy9xen6ei83Cwz6oZ1JrQGUA+hnvi4sioJq1JVOdnYT JcZ8EMBT/Lasapf6u7ZFtuY= X-Google-Smtp-Source: AB8JxZpduB+WvcKwjF8QFimFJEcgwBD1l8s5HRrgjaysIPffPRpjl/XrmwGI30gayp+nWKgt0JZXIw== X-Received: by 10.167.133.131 with SMTP id w3mr2035210pfn.197.1524831793121; Fri, 27 Apr 2018 05:23:13 -0700 (PDT) Original-Received: from localhost ([168.235.105.19]) by smtp.gmail.com with ESMTPSA id g9-v6sm2922988pgo.22.2018.04.27.05.23.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Apr 2018 05:23:12 -0700 (PDT) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116607 Archived-At: Thanks. But it's emacs in the terminal which flickers, not in the GUI. I'm not sure if the double buffering mechanism has anything to do with terminals. regards, Tim Visher writes: > I don't have an informed idea about whether you're suffering > from this (I > never have) but your question tickled my memory. > > https://www.facebook.com/notes/daniel-colascione/buttery-smooth-emacs/10155313440066102/ > > On Fri, Apr 27, 2018 at 7:58 AM, Amos Bird > wrote: > >> Hi, >> >> I'm using emacs master branch in terminal (alacritty). When >> moving >> cursor with relative line number enabled or scrolling up/down, >> I get >> unpleasant screen flickering. However, frame switch works fine, >> which >> I suppose uses full rendering updates. It seems partial >> rendering >> update doesn't work well. The author of alacritty mentioned one >> possible cause : "flickering is typically caused by a program >> not >> writing full updates to the pty. We drain all available bytes >> up to >> like 64k before yielding for a render. It may be that we should >> add >> some heuristic around time to prevent flickering from poorly >> behaved >> terminal applications." So my question is, can I enable full >> updates >> for every redisplay? Thanks! >> >> Here is a screencast of flickering. >> >> https://youtu.be/wv4QINKHDUY >> >> regards, >> >> -- >> Amos Bird >> amosbird@gmail.com >> >> -- Amos Bird amosbird@gmail.com