Dom, Both GetFPS and LockFPS modify the s_LastTime variable. This means that you can't use them together. You can either view the FPS or Lock the FPS. I don't know if this is a design feature but I was hoping to use them both.. first of all as a test that LockFPS was working and to see when the FPS went really low.
In my game the process is...
[pascal]Loop
Reset the counters
Do some Stuff... some rendering etc
Draw the FPS using GetFPS
Lock the FPS to a specific value
Until Quitting[/pascal]
At the moment, as it stands, GetFPS is resetting the counter before LockFPS has a chance to limit the FPS.
They either need to use 2 variables or there has to be an reset function which is called before anything happens.
Bookmarks