(Yesterday, 04:59 AM)johnno56 Wrote: Excellent! Thank you!
Great example.
I would just add the following to it, to make it easier to switch between max fps and 60 fps - I find that this really helps when you are trying to check fps, but still easily see how the game is running when the fps is set to a "normal" rate. You can retain the smaller increments/decrements in fw by amalgamating the key up and key down actions within this code, if desired.
Code:
if keydown(KEY_SPACE)
fw = 1000
else
fw = 60
endif