barotto / IBMulator

The IBM PS/1 emulator.
https://barotto.github.io/IBMulator
GNU General Public License v3.0
112 stars 4 forks source link

Add vsync support for fullscreen mode #48

Closed barotto closed 4 years ago

barotto commented 4 years ago

Window managers are vsynched and use an internal buffer, so even if vsync is not enabled at the GL level by the program, the image will be vsynched anyway and no tearing will occur. If however you go fullscreen the compositor will be disabled and tearing will be evident with no vsync. Give the user the option to enable vsync.

barotto commented 4 years ago

A vsync option has been added with commit 097abebcfa10b3249dbcd0fdd7672765b0884bce

Although this option will force vsync even when windowed, which could be a problem with certain desktop environments (Ubuntu 16.04 Unity with Nvidia binary drivers)