axon icon indicating copy to clipboard operation
axon copied to clipboard

screen flickering

Open kpcyrd opened this issue 5 years ago • 1 comments

It seems the whole screen is redrawn every time something changes on screen, this is causing flickering on xfce4-terminal because you can very briefly see the blank screen while it's being redrawn. Maybe this can be optimized somehow, for example by only redrawing lines that changed, or maybe there's a more efficient way to do this in curses itself.

kpcyrd avatar Jan 10 '20 01:01 kpcyrd

Yes, this is a fairly serious problem. I've been able to ignore it because the terminal emulator I use (alacritty) is fast or smart enough to properly render.

The nice solution would be damage tracking, that is only rendering widgets that actually changed like you said. I think curses might have this built in, but I didn't like the look of curses and decided to roll my own, which is essentially a tree of widgets that is rendered each time a render is requested.

ParadoxSpiral avatar Jan 12 '20 10:01 ParadoxSpiral