nesbox / TIC-80

TIC-80 is a fantasy computer for making, playing and sharing tiny games.
https://tic80.com
MIT License
4.99k stars 483 forks source link

Request: screen tearing on linux, need to allow VSYNC #1652

Closed runlow closed 2 years ago

runlow commented 2 years ago

OS: Archlinux GPU: GeForce GT 730 Driver: nvidia-390xx-dkms Resolution: 1920x1080 WM: ratpoison

Not sure why but getting really bad tearing on my setup in TIC-80.

There used to be a "vsync" option in the config cart but I couldn't find it any more.

Someone suggested to me that it's to do with Xorg setup but I have games installed with perfect vsync, zero screen tearing.

It's especially noticeable when something is scrolling horizontally, the screen tears and the tear slowly moves up and then cycles. It's to the point that it can interfere with gameplay.

runlow commented 2 years ago

This commit is possibly relevant 85748cf

nesbox commented 2 years ago

We could add a --vsync command-line option to enable VSYNC.

nesbox commented 2 years ago

Added --vsync cmd option as well as VSYNC=true option to the config a13f380

runlow commented 2 years ago

Seems to work OK. Thank you.