vydd / sketch

A Common Lisp framework for the creation of electronic art, visual design, game prototyping, game making, computer graphics, exploration of human-computer interaction, and more.
MIT License
1.39k stars 67 forks source link

Clear SDL error when setting swap interval is not supported #98

Closed Gleefre closed 8 months ago

Gleefre commented 8 months ago

Fixes https://github.com/vydd/sketch/issues/40. Note that a warning will be signaled if setting the swap interval is not supported.

Also note that in this case vsync will no longer be activated and FPS will not be limited to 60 anymore.

vydd commented 8 months ago

@Gleefre Could you please add the vsync bit as a comment in the code (or maybe add it to the warning message - which I like)? Thanks!