Switching vsync on runtime



  • 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.


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.