Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: GarageGothic on Tue 22/03/2005 16:38:12

Title: Suggestion: GetFPS() (SOLVED)
Post by: GarageGothic on Tue 22/03/2005 16:38:12
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)?
Title: Re: Suggestion: GetFPS()
Post by: strazer on Tue 22/03/2005 16:59:08
Have you tried this (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=5388) (Technical Archive)?
Title: Re: Suggestion: GetFPS()
Post by: GarageGothic on Tue 22/03/2005 17:11:33
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 ;)
Title: Re: Suggestion: GetFPS() (SOLVED)
Post by: strazer on Tue 22/03/2005 17:17:28
 ;)

Edit:

Btw, you can use repeatedly_execute_always now to make it keep counting during blocking calls.
Title: Re: Suggestion: GetFPS() (SOLVED)
Post by: GarageGothic on Tue 22/03/2005 17:22:43
Good idea, thanks!