rjkroege / edwood

Go version of Plan9 Acme Editor
Other
385 stars 34 forks source link

selection flicker #56

Open rjkroege opened 6 years ago

rjkroege commented 6 years ago

When text is selected, scrolling is slower. There is obviously too much work being done. I should make it better. In particular, there is no point in redrawing the selected text multiple times.

rjkroege commented 6 years ago

I spent a little bit of time trying to understand the scheduling behaviour between the draw library and devdraw program. It doesn't seem like devdraw has a particularly good way to express the two separate ideas of:

The way that I simplified the selection painting code also overdraws.

rjkroege commented 6 years ago

I have a wip design for a revised Frame drawing path that:

Superpat commented 5 years ago

Not sure if it's the same thing, but under OpenBSD 6.4-current, I find Edwood to be noticeably slower than plan9port Acme when playing with selections.

rjkroege commented 5 years ago

Indeed. Fixing that is the point of the bug. I know why this is. I made a simplifying assumption in the implementation of Frame that was regrettable. There are a lot of opportunities to improve the Frame drawing code.

rjkroege commented 2 years ago

Also note several points in the code where I'm redrawing unnecessarily.