Hi im new 'ere! Question about FPS
BlitzPlus Forums/BlitzPlus Programming/Hi im new 'ere! Question about FPS
| ||
Hello, This is my first post. I have had blitz basic for 1 week and have programmed quite a bit with it. I have a question about calculation Frame displays per second. I have seen the example but it does not make much sense to me. Can anyone explain to me how to do it easily? Thanks, Thomas |
| ||
It is really based on the idea that every time the Flip command is used at the end of the 'Main Loop', this is when the screen is updated i.e. each 'Frame' Very simply, FPS counters count the time taken to perform a whole 'Game Loop' between Flip commands. The reciprocal is the number of Frames Per Second. i.e. PseudoCode Start_Timer Do Game_Loop Flip (Refresh Screen) Stop_Timer Calculate Frames_Per_Second Repeat |
| ||
Okay thanks, that works for me |