akiyosi / goneovim

A GUI frontend for neovim.
MIT License
2.39k stars 62 forks source link

smooth scrolling causes tearing #550

Open tfriedel opened 2 months ago

tfriedel commented 2 months ago

I'm using Windows 10 on a 60 hz display. When I enable smooth scrolling I see visual tearing and other glitches. I know this effect from programs that don't respect v-sync. Maybe it's the same issue here? I looked in the source, but couldn't easily figure out how to implement v-sync.

akiyosi commented 2 months ago

@tfriedel Hi :) Thanks for the report. What version are you using?

From 0.6.8 to the latest, the smooth scrolling behavior is improved. V-sync is not implemented, but the latest may have a small improvement.

tfriedel commented 2 months ago

@akiyosi I was using the nightly from end of july and also the version I just built from source.

The glitches are more pronounced when using the "scroll wheel" function of my trackball. Then it seems like the text near the top is moving faster than at the bottom. If I scroll just with for example "Page Down", then only the tearing effects are visible.

akiyosi commented 2 months ago

@tfriedel Okay, What OS are you using?

tfriedel commented 2 months ago

Windows 10

akiyosi commented 2 months ago

@tfriedel If you start goneovim without Neovim personal settings as follows, will the issue be the same?

\path\to\goneovim -u NONE
tfriedel commented 2 months ago

after I enable smooth scrolling, yes, the same