Seeing as the debug function does display the FPS count, would it be possible to add a command to get this as an int (for detecting performance issues and turning on/off visual effects accordingly)?
Have you tried this (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=5388) (Technical Archive)?
Doh! Of course it can be done like that. For some reason I had gotten it into my mind that FPS was some strange internal engine thing and not something you could easily calcute yourself :-[ Well, at least someone else also thought that GetFPS was a good name for the function ;)
;)
Edit:
Btw, you can use repeatedly_execute_always now to make it keep counting during blocking calls.
Good idea, thanks!