VSync and wxCanvas?

BlitzMax Forums/Brucey's Modules/VSync and wxCanvas?

JoshK(Posted 2009) [#1]
Even when using Flip(0) my application won't run faster than 60 FPS. I am using the mainloop sample, so it isn't using a timer for rendering. When I skip the Flip command the framerate (printed to the console) is thousands of FPS. It also changes to match my screen refresh rate, when I change that setting. So I know it is the vertical sync causing it.


Brucey(Posted 2009) [#2]
It seems I wasn't setting the sync (if required) before the call to swapbuffers.

What's the default? 1 ?

Setting it now to zero here makes my glcube sample go crazy.


Brucey(Posted 2009) [#3]
Oh. -1...

Function Flip( sync=-1 )
...


JoshK(Posted 2009) [#4]
Was that an answer or a confirmed bug?