Max FPS

BlitzMax Forums/BlitzMax Beginners Area/Max FPS

mothmanbr(Posted 2007) [#1]
I have seen some BlitzMax games running at >100 FPS, but my game in my own machine and in the machines of a lot of friends that tested it is always locked at 60 FPS. Why doesn't it go over that? Is it about the drivers I choose? Do I have to change something? Is it bad to remove the FPS limit?


Grey Alien(Posted 2007) [#2]
you are using Flip 1 or -1 which locks to the screen Hz. try flip 0 for Max FPS, but you'll get tearing.


mothmanbr(Posted 2007) [#3]
Thanks Grey Alien. Actually I am using just flip, not followed by any number. Could anyone explain this Flip thing?


H&K(Posted 2007) [#4]
Function Flip( sync=-1 )

Flip swaps the front and back buffers of the current graphics objects.

If sync is 0, then the flip occurs as soon as possible. If sync is 1, then the flip occurs on the next vertical blank.

If sync is -1 and the current graphics object was created with the Graphics command, then flips will occur at the graphics object's refresh rate regardless of whether or not the graphics hardware supports such a refresh rate.

If sync is -1 and the current graphics object was NOT created with the Graphics command, then the flip will occur on the next vertical blank.


Grey Alien(Posted 2007) [#5]
If you call flip then it uses -1 as the DEFAULT parameter, that's that it means when it says sync=-1, in means you can pass in a sync value but if you don't a default of -1 will be used.


TaskMaster(Posted 2007) [#6]
I let the fps run wild while developing so I can see what kind of impact changes I make have on the speed of the program. But when ready for release, setting it to lock to the refresh is best.


mothmanbr(Posted 2007) [#7]
Thanks H&K, that explains why it was locked to 60. Dunno why I didn't make the connection.

TaskMaster, I was thinking the same thing :)