Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Oct 29, 2016 at 04:30 PM by tanoshimi for the following reason:

The question is answered, right answer was accepted

avatar image
-1
Question by Zitoox · Oct 28, 2016 at 02:32 PM · script.framerate

Calculate frame rate

Hi! Do anyone know if it is possible to calculate the frame rate during play mode? Something like... make Unity calculate it using script. If it is possible, how could i do it?

I want to calculate the average frame rate of player's while they are playing my game. Actually, i wanted to make this via script. This would let me not only show to the player the performance that he is having, but also in many other things, such as based actions.

For an example:

The player has 30+ fps, change the settings to medium. The player has 60+ fps, change settings to high. The player has 47 fps, show something to let him know, etc...

Comment
Comments Locked
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

  • Sort: 
avatar image
0
Best Answer

Answer by kleber-swf · Oct 28, 2016 at 04:12 PM

You can use this free extension bitif you want: https://www.assetstore.unity3d.com/en/#!/content/32042

It shows a graphic with FPS history, minimum, maximum and average values.
And it has a memory watcher too.

Comment
Comments Locked · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by tanoshimi · Oct 28, 2016 at 02:49 PM

http://wiki.unity3d.com/index.php?title=FramesPerSecond

Comment
Comments Locked · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Zitoox · Oct 29, 2016 at 02:04 AM -1
Share

This isn't exactly what i wanted...

avatar image aditya007 Zitoox · Oct 29, 2016 at 04:16 AM 1
Share

Reading up your question, this answer seems correct. If this is not what you need, then what exactly, do you need?

avatar image Zitoox aditya007 · Oct 29, 2016 at 03:15 PM -1
Share

No, i am with you. The answer is right, but i wanted the author to help me because only them know the script exactly. I want to know where i can use the codes that i want. Just throw a link like "Run for it" isn't the best way to help me to UNDERSTAND how the process is done.

Show more comments
avatar image Zitoox · Oct 29, 2016 at 09:37 PM 0
Share

Did i said "CAN SO$$anonymous$$EONE THROW $$anonymous$$E THE SCRIPT"? No. I asked specifically HOW could i do it. It's different. For an example:

I could ask "I want to make just one script to use in many same objects, how do i do that"?

And someone could just answer:

"I know a way, you could use a variable, pretty simple. You can attach the object that you want without needing to make another script".

avatar image tanoshimi Zitoox · Oct 29, 2016 at 10:56 PM 0
Share

What you specifically asked was "Do (sic) anyone know if it is possible to calculate the frame rate during play mode?". To which the correct answer would simply have been "yes."

What I had intepreted your question to mean, and what the answer I provided showed, was "How do I calculate the frame rate via script?". But I'm glad that you found an asset to do it now.

Follow this Question

Answers Answers and Comments

59 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

gameplay frame rate drops sometimes. need suggestion. 2 Answers

How to check if Animator is playing 3 Answers

How to change width and color of a 2d sprite within script 1 Answer

"Switch Video" script? 1 Answer

Why the speed parameter in Animator change the animation speed only for door open but when the door is closing the speed still very fast ? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges