Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / How do you retrieve the FPS value?
- - By Omegas7 Date 2012-08-04 18:47
Well yeah, how do you retrieve this value? Do you have to calculate the duration between each update call or is there already a function that gives it to you?
Parent - By Spooner Date 2012-08-04 23:39
Gosu::fps

However, if you need to know the potential FPS, then you have to calculate it yourself by measuring the time spent in draw/update/callbacks compared to time not spent in them (I do this in my games, since it is a much more clear metric than the basic fps, which is nearly always at the cap of 60fps anyway).
Up Topic Gosu / Gosu Exchange / How do you retrieve the FPS value?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill