Do NOT let Dr. Mario touch your genitals. He is not a real doctor!
🔒 Locked
average framerate question
Advertisement
Original Post
i want to log the average framerate of my game.. not the lowest + the highest / 2 either..the actual average.
the only thing i could think of was to calculate the actual average every single frame.. but that''s alot of division (read: slow). is there a better way? or am i best of going with the division routes.
-eldee
;another space monkey;
[ Forced Evolution Studios ]
Well, you don´t need to do it every single frame.
Create a variable that hold the sum of your frame rate every second and other that indicates the time of your aplication since it was started, at the exit you can calculate the average frame rate.
Hope this helps
If God with me, Who against me?
Create a variable that hold the sum of your frame rate every second and other that indicates the time of your aplication since it was started, at the exit you can calculate the average frame rate.
Hope this helps
If God with me, Who against me?
AP: the thought definately crossed my mind, but im not sure of
the actual time it takes for a division operation. which is why
i asked
thanks for clarifying though.
-eldee
;another space monkey;
[ Forced Evolution Studios ]
the actual time it takes for a division operation. which is why
i asked
thanks for clarifying though.
-eldee
;another space monkey;
[ Forced Evolution Studios ]

Do NOT let Dr. Mario touch your genitals. He is not a real doctor!
Hundreds of thousands? Go up a few more magnetudes...
Death of one is a tragedy, death of a million is just a statistic.
Death of one is a tragedy, death of a million is just a statistic.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement