Suggestion: GetFPS() (SOLVED)

Started by GarageGothic, Tue 22/03/2005 16:38:12

Previous topic - Next topic

GarageGothic

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)?

strazer

Have you tried this (Technical Archive)?

GarageGothic

#2
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 ;)

strazer

#3
 ;)

Edit:

Btw, you can use repeatedly_execute_always now to make it keep counting during blocking calls.

GarageGothic


SMF spam blocked by CleanTalk