0

Is it possible to switch vsync on/off for my HaxeFlixel project, on runtime? Or do I have to create different executable files (one with vsync enabled, and another one with vsync disable)

After dealing with an IntelHD bug, I had to disable vsync for my C++ target, using this build setting:

<window if="cpp" width="960" height="540" fps="60" background="#000000" hardware="true" vsync="false" antialiasing="0" />

It would be nice to switch it from the game menu, so I'm wondering if there is an API that enables/disables vsync on runtime.

Community
  • 1
  • 1
yannicuLar
  • 3,083
  • 3
  • 32
  • 50

0 Answers0