Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

nightbird0

Smart FPS Counter

Recommended Posts

Here is guys the SMART  FPS COUNTER Script... you are ready to say "just another script for counting fps, smart and bullsh*** :d

 

The answer : It converts the float to int : 
if it is

61.33232 = 61

61.54634 = 62

59.93435 = 60

 

and it use color to declare if the fps is good 

example

less than 30 = red

equals to 30 or less than 40 = yellow

greater than 40 = green

 

also the fps do not refresh each frame but after 10 frames

 

and it can be enabled/disabled by pressing ~

and the best .. its C#

 

Please login or register to see this code. Edited by nightbird0
  • Like 1

Share this post


Link to post
Share on other sites

I think the colors would be reasonable if it was less than 20, it would red. 20-30 fps is yellow and >30 fps is green

Share this post


Link to post
Share on other sites

It looks like the pause menu fps counter... mine is better though! It is more accurate as I use an accumulator :P

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

yours is accurate but annoying at the same time because do you like to see something like : 

FPS : 59.304345

or 

59

 

anyway , i really can't understood what you mean with : looks like the pause menu fps counter

;) explain (in greek if you can't) 

Share this post


Link to post
Share on other sites

Haven't you read my code? I use an f1 format to display it... one decimal point

Share this post


Link to post
Share on other sites

Using a accumulator and a frame counter will make it more accurate than just using a frame counter.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...