TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.1k stars 221 forks source link

Support to toggle vsync #80

Closed JeppeSRC closed 8 years ago

JeppeSRC commented 8 years ago

Window::SetVsync now enables/disables vsync for both opengl and direct3d. The direct3d implementation is maybe not the best, but it's the best I could come up with without rewriting anything. I'm open for any suggestions on improvement.

TheCherno commented 8 years ago

Thanks for doing this. Couple of things that need to be addressed:

JeppeSRC commented 8 years ago

That makes sense. Seems like Xeryko has fixed it so I'll leave it to him.