News for hackers. Stuff that matters.
Re:Buttery Smooth Emacs by jefurii on Sunday October 30, 2016 @11:48AM (#12830409)
Emacs flickers? I've never noticed this, but I've only ever used it on Linux. Maybe it flickers in OSX?
Re:Buttery Smooth Emacs by quotemstr on Sunday October 30, 2016 @12:47PM (#12830752)
Article author here. Check the emacs-devel thread: some people were able to repro the flickering and some couldn't. It appears to depend heavily on details of your machine.

I have two X1 Carbon 4th Gen machines, one running Goobuntu (basically Ubuntu 14.04 with a new kernel) and one running Ubuntu 16.10. They both flicker, but differently.

Re:Buttery Smooth Emacs by edem on Sunday October 30, 2016 @02:36PM (#12831443)
How do you describe this flicker effect? I've never seen it.
Re:Buttery Smooth Emacs by startling on Monday October 31, 2016 @03:15AM (#12834796)
Black and white horizontal lines or misrendered text for a split second until a white blink rerenders the whole page. Happens somewhat frequently when I have heavy CPU load on a Linux laptop.
Re:Buttery Smooth Emacs by dman on Sunday October 30, 2016 @12:49PM (#12830762)
Are your fixes available in trunk?
Re:Buttery Smooth Emacs by quotemstr on Sunday October 30, 2016 @12:50PM (#12830768)
Yep.
Re:Buttery Smooth Emacs by dman on Sunday October 30, 2016 @12:59PM (#12830817)
Thanks!!!
Re:Buttery Smooth Emacs by dom0 on Sunday October 30, 2016 @12:09PM (#12830531)
Perhaps using a compositing desktop manager mitigates it, since those are almost always vsync'd and double buffered.

Edit: Hm, no there is no synchronization between the WM and emacs in any way. So this can't be it.

Re:Buttery Smooth Emacs by to3m on Sunday October 30, 2016 @12:23PM (#12830611)
It definitely flickers a bit when running in XQuartz.

(I hope this change doesn't make it run crappily in XQuartz! X-Windows programs that do double buffering draw to an offscreen buffer often perform really poorly, poorly enough that I'd definitely rather have the flicker, not least because I don't mind the flicker too much anyway.

(I assume a lot of them have a client-side pixmap that's written to manually, and then has to be sent over the network link. )

Re:Buttery Smooth Emacs by quotemstr on Sunday October 30, 2016 @01:49PM (#12831115)
One of the advantages of using the X double buffer extension or XRender or something like that is you don't need to send raster image data over the network. You're still sending ordinary drawing commands, and it's the server that accumulates the results into a pixmap somewhere.

If it is slow for you, you can turn off the new stuff:

    (modify-frame-parameters nil '((inhibit-double-buffering . t)))
Re:Buttery Smooth Emacs by rurban on Sunday October 30, 2016 @07:19PM (#12833122)
But why inhibit-double-buffering and not just the simple no-double-buffering?
Re:Buttery Smooth Emacs by to3m on Sunday October 30, 2016 @08:19PM (#12833399)
There are only 3 variables with a "no-" prefix, but 30+ starting with "inhibit-"...
Re:Buttery Smooth Emacs by digi_owl on Sunday October 30, 2016 @03:28PM (#12831726)
Would not surprise me one bit if the compositing is the cause rather than the "solution".
Re:Buttery Smooth Emacs by NoGravitas on Sunday October 30, 2016 @12:12PM (#12830543)
You may just be pure of soul. I don't see a lot of flickering on X either, but I don't get too use emacs there as much as I'd like, either.
Re:Buttery Smooth Emacs by hollerith on Sunday October 30, 2016 @12:22PM (#12830603)
Are you using Emacs inside a terminal?

The flicker happens only with graphical Emacs (and then only on Linux IIUC).

Re:Buttery Smooth Emacs by p4bl0 on Sunday October 30, 2016 @12:47PM (#12830745)
Same here, I've been using Emacs daily (and a lot) in X11 for almost 10 years now, and I've never experienced flickering.
Re:Buttery Smooth Emacs by pmontra on Sunday October 30, 2016 @12:24PM (#12830620)
Same question I was about to ask. I use emacs on Ubuntu every day and I don't remember it flickering. I wouldn't use it if it were. Well, maybe I'll look for another OS.
Re:Buttery Smooth Emacs by hga on Sunday October 30, 2016 @12:48PM (#12830756)
Ditto, stock 14.04 Trusty running Unity, and this was also true for Debian releases lenny through wheezy, and at least two very different hardware systems.
Re:Buttery Smooth Emacs by eeks on Sunday October 30, 2016 @09:08PM (#12833580)
I do experience flickering, on both a desktop Fedora 22 system and a X1 carbon 4th gen system running OpenBSD 6.0. It is usually mostly noticeable in the fringe area as well as along the divider when splitting windows. Kuddos for OP, the patch does not seem trivial and it is a most welcome change.
Re:Buttery Smooth Emacs by hellofunk on Sunday October 30, 2016 @01:44PM (#12831086)
Me too, I've used emacs on several different OSX computers in recent years and never seen any flicker.
Re:Buttery Smooth Emacs by fit2rule on Sunday October 30, 2016 @12:21PM (#12830599)
I've noticed it, since like, forever. Its why I'm a vi guy.

But I must admit, this butter-smooth version of emacs sounds intriguing .. off to give it a try.

Re:Buttery Smooth Emacs by qwertyuiop924 on Sunday October 30, 2016 @02:01PM (#12831190)
Nothing, on i3, and graphical. So it seems near-random.
Re:Buttery Smooth Emacs by melling on Sunday October 30, 2016 @12:04PM (#12830510)
The article is a discussion about X11.
Re:Buttery Smooth Emacs by base698 on Sunday October 30, 2016 @05:20PM (#12832392)
I notice it using cider.