FPS code for use with VWAIT FLIP FALSE

Blitz3D Forums/Blitz3D Beginners Area/FPS code for use with VWAIT FLIP FALSE

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

with flip false it will run "as fast as it gets" on all machines.
You need to pause the game to give reseouces back to the OS. Typically you would vsync the game. Since the machine waits for the next sync, you would already give it as much back as the game doesn't utilize with the current framerate. You can try both:

while keydown(1)=0
 vwait
 flip 0
wend

and
while keydown(1)=0
 flip 0
wend


or you could even try:
while keydown(1)=0
 delay 200
 vwait
 flip 0
wend

but of course, a framerate of 4 fps is kind of low.

you should see the diffrence now. (Someone correct me if I'm wrong :) although I thought I know this stuff )