all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs flickers periodically
@ 2017-06-16 16:59 Narendra Joshi
  2017-06-17  9:30 ` Emanuel Berg
  2017-06-17  9:42 ` Dmitry Gutov
  0 siblings, 2 replies; 19+ messages in thread
From: Narendra Joshi @ 2017-06-16 16:59 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I see my Emacs flickering when there is a huge update to the screen. It
happens sometimes without me doing anything at all. Has anyone else
faced similar problem? How did you fix it? 

Best,
-- 
Narendra Joshi



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-16 16:59 Emacs flickers periodically Narendra Joshi
@ 2017-06-17  9:30 ` Emanuel Berg
  2017-06-17 14:06   ` Narendra Joshi
  2017-06-17  9:42 ` Dmitry Gutov
  1 sibling, 1 reply; 19+ messages in thread
From: Emanuel Berg @ 2017-06-17  9:30 UTC (permalink / raw)
  To: help-gnu-emacs

Narendra Joshi <narendraj9@gmail.com> writes:

> I see my Emacs flickering when there is a huge
> update to the screen. It happens sometimes without
> me doing anything at all. Has anyone else faced
> similar problem? How did you fix it?

O.o?

Do you have an old CRT or do you run Emacs on your TV?

What's the computer system?

Because that shouldn't happen, no.

-- 
underground experts united
http://user.it.uu.se/~embe8573




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-16 16:59 Emacs flickers periodically Narendra Joshi
  2017-06-17  9:30 ` Emanuel Berg
@ 2017-06-17  9:42 ` Dmitry Gutov
  2017-06-17  9:57   ` Emanuel Berg
  1 sibling, 1 reply; 19+ messages in thread
From: Dmitry Gutov @ 2017-06-17  9:42 UTC (permalink / raw)
  To: Narendra Joshi, help-gnu-emacs

On 6/16/17 7:59 PM, Narendra Joshi wrote:

> I see my Emacs flickering when there is a huge update to the screen. It
> happens sometimes without me doing anything at all. Has anyone else
> faced similar problem? How did you fix it?

Try an Emacs 26 build. It has double buffering on GNU/Linux.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17  9:42 ` Dmitry Gutov
@ 2017-06-17  9:57   ` Emanuel Berg
  2017-06-17 10:10     ` Dmitry Gutov
  2017-06-17 14:04     ` Narendra Joshi
  0 siblings, 2 replies; 19+ messages in thread
From: Emanuel Berg @ 2017-06-17  9:57 UTC (permalink / raw)
  To: help-gnu-emacs

Dmitry Gutov <dgutov@yandex.ru> writes:

>> I see my Emacs flickering when there is a huge
>> update to the screen. It happens sometimes without
>> me doing anything at all. Has anyone else faced
>> similar problem? How did you fix it?
>
> Try an Emacs 26 build. It has double buffering on
> GNU/Linux.

I have

    GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+
    Version 3.22.12) of 2017-04-29 on trouble,
    modified by Debian

and never experienced flickering.

Is it yet another GUI issue unheard of on a tty or
terminal Emacs?

-- 
underground experts united
http://user.it.uu.se/~embe8573




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17  9:57   ` Emanuel Berg
@ 2017-06-17 10:10     ` Dmitry Gutov
  2017-06-17 10:48       ` Eli Zaretskii
  2017-06-17 15:21       ` Emanuel Berg
  2017-06-17 14:04     ` Narendra Joshi
  1 sibling, 2 replies; 19+ messages in thread
From: Dmitry Gutov @ 2017-06-17 10:10 UTC (permalink / raw)
  To: help-gnu-emacs

On 6/17/17 12:57 PM, Emanuel Berg wrote:

> Is it yet another GUI issue unheard of on a tty or
> terminal Emacs?

Possibly. Terminals do their own synchronization.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 10:10     ` Dmitry Gutov
@ 2017-06-17 10:48       ` Eli Zaretskii
  2017-06-17 10:51         ` Dmitry Gutov
  2017-06-17 15:21       ` Emanuel Berg
  1 sibling, 1 reply; 19+ messages in thread
From: Eli Zaretskii @ 2017-06-17 10:48 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Sat, 17 Jun 2017 13:10:51 +0300
> 
> On 6/17/17 12:57 PM, Emanuel Berg wrote:
> 
> > Is it yet another GUI issue unheard of on a tty or
> > terminal Emacs?
> 
> Possibly.

Actually, Emacs flickers on a TTY more frequently than in GUI frames,
because certain changes on display require that the entire TTY frame
be redrawn.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 10:48       ` Eli Zaretskii
@ 2017-06-17 10:51         ` Dmitry Gutov
  2017-06-17 11:28           ` Emanuel Berg
  2017-06-17 13:56           ` Eli Zaretskii
  0 siblings, 2 replies; 19+ messages in thread
From: Dmitry Gutov @ 2017-06-17 10:51 UTC (permalink / raw)
  To: Eli Zaretskii, help-gnu-emacs

On 6/17/17 1:48 PM, Eli Zaretskii wrote:

> Actually, Emacs flickers on a TTY more frequently than in GUI frames,
> because certain changes on display require that the entire TTY frame
> be redrawn.

Couldn't that actually be beneficial? As long as it's never redrawn in 
an inconsistent state.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 10:51         ` Dmitry Gutov
@ 2017-06-17 11:28           ` Emanuel Berg
  2017-06-17 14:04             ` Narendra Joshi
  2017-06-17 13:56           ` Eli Zaretskii
  1 sibling, 1 reply; 19+ messages in thread
From: Emanuel Berg @ 2017-06-17 11:28 UTC (permalink / raw)
  To: help-gnu-emacs

Dmitry Gutov wrote:

>> Actually, Emacs flickers on a TTY more
>> frequently than in GUI frames, because
>> certain changes on display require that the
>> entire TTY frame be redrawn.
>
> Couldn't that actually be beneficial? As long
> as it's never redrawn in an
> inconsistent state.

I have never experienced flickering but now
that I think about it I don't even know the
definition of the word. Perhaps it happens to
me all the time only my eyes and/or brain by
now flickers as well to cancel it out...

-- 
underground experts united
http://user.it.uu.se/~embe8573




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 10:51         ` Dmitry Gutov
  2017-06-17 11:28           ` Emanuel Berg
@ 2017-06-17 13:56           ` Eli Zaretskii
  2017-06-17 18:21             ` Dmitry Gutov
  1 sibling, 1 reply; 19+ messages in thread
From: Eli Zaretskii @ 2017-06-17 13:56 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Sat, 17 Jun 2017 13:51:37 +0300
> 
> On 6/17/17 1:48 PM, Eli Zaretskii wrote:
> 
> > Actually, Emacs flickers on a TTY more frequently than in GUI frames,
> > because certain changes on display require that the entire TTY frame
> > be redrawn.
> 
> Couldn't that actually be beneficial?

Beneficial in what sense?  Users are generally annoyed by flickering,
especially when most or all of the display doesn't change.

> As long as it's never redrawn in an inconsistent state.

AFAIK, Emacs never redraws display in inconsistent state (barring
bugs, of course).



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17  9:57   ` Emanuel Berg
  2017-06-17 10:10     ` Dmitry Gutov
@ 2017-06-17 14:04     ` Narendra Joshi
  1 sibling, 0 replies; 19+ messages in thread
From: Narendra Joshi @ 2017-06-17 14:04 UTC (permalink / raw)
  To: help-gnu-emacs

Emanuel Berg <moasen@zoho.com> writes:

> Dmitry Gutov <dgutov@yandex.ru> writes:
>
>>> I see my Emacs flickering when there is a huge
>>> update to the screen. It happens sometimes without
>>> me doing anything at all. Has anyone else faced
>>> similar problem? How did you fix it?
>>
>> Try an Emacs 26 build. It has double buffering on
>> GNU/Linux.
>
> I have
>
>     GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+
>     Version 3.22.12) of 2017-04-29 on trouble,
>     modified by Debian
>
> and never experienced flickering.
Earlier I was on Archlinux with XMonad and never experienced this with
Emacs 24 or Emacs 25. Now, I am on Kali Linux and Emacs 25 flickers all
the time. 

-- 
Narendra Joshi



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 11:28           ` Emanuel Berg
@ 2017-06-17 14:04             ` Narendra Joshi
  0 siblings, 0 replies; 19+ messages in thread
From: Narendra Joshi @ 2017-06-17 14:04 UTC (permalink / raw)
  To: help-gnu-emacs

Emanuel Berg <moasen@zoho.com> writes:

> Dmitry Gutov wrote:
>
>>> Actually, Emacs flickers on a TTY more
>>> frequently than in GUI frames, because
>>> certain changes on display require that the
>>> entire TTY frame be redrawn.
>>
>> Couldn't that actually be beneficial? As long
>> as it's never redrawn in an
>> inconsistent state.
>
> I have never experienced flickering but now
> that I think about it I don't even know the
> definition of the word. Perhaps it happens to
> me all the time only my eyes and/or brain by
> now flickers as well to cancel it out...
:) Makes sense. 

-- 
Narendra Joshi



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17  9:30 ` Emanuel Berg
@ 2017-06-17 14:06   ` Narendra Joshi
  2017-06-17 15:01     ` Emanuel Berg
  0 siblings, 1 reply; 19+ messages in thread
From: Narendra Joshi @ 2017-06-17 14:06 UTC (permalink / raw)
  To: help-gnu-emacs

Emanuel Berg <moasen@zoho.com> writes:

> Narendra Joshi <narendraj9@gmail.com> writes:
>
>> I see my Emacs flickering when there is a huge
>> update to the screen. It happens sometimes without
>> me doing anything at all. Has anyone else faced
>> similar problem? How did you fix it?
>
> O.o?
>
> Do you have an old CRT or do you run Emacs on your TV?
>
> What's the computer system?
It's a decent laptop. I didn't use to see this on Archlinux. Now, I am
on Kali Linux and something that I am not aware of has changed which is
causing Emacs to flicker.

-- 
Narendra Joshi



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 14:06   ` Narendra Joshi
@ 2017-06-17 15:01     ` Emanuel Berg
  2017-06-17 17:03       ` Narendra Joshi
  0 siblings, 1 reply; 19+ messages in thread
From: Emanuel Berg @ 2017-06-17 15:01 UTC (permalink / raw)
  To: help-gnu-emacs

Narendra Joshi <narendraj9@gmail.com> writes:

> It's a decent laptop. I didn't use to see this on
> Archlinux. Now, I am on Kali Linux and something
> that I am not aware of has changed which is causing
> Emacs to flicker.

Do you experience the same on other applications since
moving between systems?

Not that the Linux distribution should influence this.
The operative system I mean word is "should" tho...

-- 
underground experts united
http://user.it.uu.se/~embe8573




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 10:10     ` Dmitry Gutov
  2017-06-17 10:48       ` Eli Zaretskii
@ 2017-06-17 15:21       ` Emanuel Berg
  1 sibling, 0 replies; 19+ messages in thread
From: Emanuel Berg @ 2017-06-17 15:21 UTC (permalink / raw)
  To: help-gnu-emacs

Dmitry Gutov <dgutov@yandex.ru> writes:

> Possibly. Terminals do their own synchronization.

Is there any way to stress Emacs trying to provoke
this kind of state?

-- 
underground experts united
http://user.it.uu.se/~embe8573




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 15:01     ` Emanuel Berg
@ 2017-06-17 17:03       ` Narendra Joshi
  0 siblings, 0 replies; 19+ messages in thread
From: Narendra Joshi @ 2017-06-17 17:03 UTC (permalink / raw)
  To: help-gnu-emacs

Emanuel Berg <moasen@zoho.com> writes:

> Narendra Joshi <narendraj9@gmail.com> writes:
>
>> It's a decent laptop. I didn't use to see this on
>> Archlinux. Now, I am on Kali Linux and something
>> that I am not aware of has changed which is causing
>> Emacs to flicker.
>
> Do you experience the same on other applications since
> moving between systems?
No, this happens only with Emacs. 

> Not that the Linux distribution should influence this.
> The operative system I mean word is "should" tho...

-- 
Narendra Joshi



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 13:56           ` Eli Zaretskii
@ 2017-06-17 18:21             ` Dmitry Gutov
  2017-06-17 18:35               ` Eli Zaretskii
  0 siblings, 1 reply; 19+ messages in thread
From: Dmitry Gutov @ 2017-06-17 18:21 UTC (permalink / raw)
  To: Eli Zaretskii, help-gnu-emacs

On 6/17/17 4:56 PM, Eli Zaretskii wrote:

>>> Actually, Emacs flickers on a TTY more frequently than in GUI frames,
>>> because certain changes on display require that the entire TTY frame
>>> be redrawn.
>>
>> Couldn't that actually be beneficial?
> 
> Beneficial in what sense?  Users are generally annoyed by flickering,
> especially when most or all of the display doesn't change.

In the "eliminating bugs" sense, bugs to which you referred later. I 
can't say I have a clear idea how, except by eliminating certain 
optimizations which you refer to in bug#16621).

And also, terminal emulators might have their own display 
synchronization logic. Still, I've never tried the test cases for the 
two bugs mentioned below in the terminal. Maybe someone should do that 
and report back.

>> As long as it's never redrawn in an inconsistent state.
> 
> AFAIK, Emacs never redraws display in inconsistent state (barring
> bugs, of course).

But that's the effect that the double-buffering patch brings: limiting 
redrawing to consistent states only.

So maybe those were bugs (like 12363 and 16621), but they went unfixed 
until Daniel's patch.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 18:21             ` Dmitry Gutov
@ 2017-06-17 18:35               ` Eli Zaretskii
  2017-06-17 19:27                 ` Dmitry Gutov
  0 siblings, 1 reply; 19+ messages in thread
From: Eli Zaretskii @ 2017-06-17 18:35 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Sat, 17 Jun 2017 21:21:12 +0300
> 
> >> Couldn't that actually be beneficial?
> > 
> > Beneficial in what sense?  Users are generally annoyed by flickering,
> > especially when most or all of the display doesn't change.
> 
> In the "eliminating bugs" sense, bugs to which you referred later. I 
> can't say I have a clear idea how, except by eliminating certain 
> optimizations which you refer to in bug#16621).
> 
> And also, terminal emulators might have their own display 
> synchronization logic.

Flickering is not caused by display synchronization.  It is caused by
constant redrawing of large portions of display with the same content.

> > AFAIK, Emacs never redraws display in inconsistent state (barring
> > bugs, of course).
> 
> But that's the effect that the double-buffering patch brings: limiting 
> redrawing to consistent states only.
> 
> So maybe those were bugs (like 12363 and 16621), but they went unfixed 
> until Daniel's patch.

That's not what double-buffering does.  What it does, AFAIU, is let
Emacs redraw however many times it wants, and then bitblt the result
only once to the glass.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 18:35               ` Eli Zaretskii
@ 2017-06-17 19:27                 ` Dmitry Gutov
  2017-06-17 19:37                   ` Eli Zaretskii
  0 siblings, 1 reply; 19+ messages in thread
From: Dmitry Gutov @ 2017-06-17 19:27 UTC (permalink / raw)
  To: Eli Zaretskii, help-gnu-emacs

On 6/17/17 9:35 PM, Eli Zaretskii wrote:

> Flickering is not caused by display synchronization.  It is caused by
> constant redrawing of large portions of display with the same content.

Not necessarily large ones. And vice versa, large portions of display 
can be redrawn often and the user might be fine with it if only 
consistent states are shown. The result might be called "animation".

>>> AFAIK, Emacs never redraws display in inconsistent state (barring
>>> bugs, of course).
>>
>> But that's the effect that the double-buffering patch brings: limiting
>> redrawing to consistent states only.
>>
>> So maybe those were bugs (like 12363 and 16621), but they went unfixed
>> until Daniel's patch.
> 
> That's not what double-buffering does.  What it does, AFAIU, is let
> Emacs redraw however many times it wants, and then bitblt the result
> only once to the glass.

Those are implementation details. In effect, the redraw happens once.

But *when* does it happen? If the choice of this moment was not good 
enough, bugs 12363 and 16621 would continue occurring.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs flickers periodically
  2017-06-17 19:27                 ` Dmitry Gutov
@ 2017-06-17 19:37                   ` Eli Zaretskii
  0 siblings, 0 replies; 19+ messages in thread
From: Eli Zaretskii @ 2017-06-17 19:37 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Sat, 17 Jun 2017 22:27:56 +0300
> 
> But *when* does it happen?

When all the windows of a frame that needed to be updated were
updated.



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-06-17 19:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-16 16:59 Emacs flickers periodically Narendra Joshi
2017-06-17  9:30 ` Emanuel Berg
2017-06-17 14:06   ` Narendra Joshi
2017-06-17 15:01     ` Emanuel Berg
2017-06-17 17:03       ` Narendra Joshi
2017-06-17  9:42 ` Dmitry Gutov
2017-06-17  9:57   ` Emanuel Berg
2017-06-17 10:10     ` Dmitry Gutov
2017-06-17 10:48       ` Eli Zaretskii
2017-06-17 10:51         ` Dmitry Gutov
2017-06-17 11:28           ` Emanuel Berg
2017-06-17 14:04             ` Narendra Joshi
2017-06-17 13:56           ` Eli Zaretskii
2017-06-17 18:21             ` Dmitry Gutov
2017-06-17 18:35               ` Eli Zaretskii
2017-06-17 19:27                 ` Dmitry Gutov
2017-06-17 19:37                   ` Eli Zaretskii
2017-06-17 15:21       ` Emanuel Berg
2017-06-17 14:04     ` Narendra Joshi

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.