Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by Cyriel Martens · Mar 04, 2011 at 11:40 AM · fpsindicatormeterbenchmark

Frames per second meter/indicator

Hello

I'm Making a simple benchmark-tool to see what features are heavy for the CPU/GPU. and how far i can go on a specific system. I'm not a programmer, but i found a great script to show me the frames per second. Is it possible to link this to a meter? It would be great to make a little meter shows the user if the demo is running "poor" "good" "great!" etc.

I'm sure there is a way to use the FPS and link them to an animation or position. But i'm not sure how :)

Comment
Add comment
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

· Add your reply
  • Sort: 
avatar image
0

Answer by Skjalg · Mar 04, 2011 at 11:46 AM

Yes its possible, but you'd have to make it yourself. In the code where you calculate your fps all you need to to is store the fps for that exact frame (could be helpful to store the time and the fps together).

All you'd have to do then is to display what has been stored any way you can think of.

Comment
Add comment · 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 Joshua · Mar 04, 2011 at 01:50 PM

Am I correct in assuming you are just asking how to display a variable? Look into how GUIText works. Basically inside your GUIText you first want to call onto the variable containing the most recent FPS, which you have to store in the script you have running your FPS atm.

When you call this, inside the update function then put something like if (FPS > 50) {guiText.text = "Framerate is good";} else if (FPS >30) {guiText.text = "Franerate is ok"} else if (FPS > 15) {guiText.text = "Framerate is poor"}, etc

hope I was clear enough. If you need more explanation, please ask.

Comment
Add comment · Show 2 · 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 Cyriel Martens · Mar 04, 2011 at 02:41 PM 0
Share

Hey guyz, thanks for the quick reply! I need to take a look at this, and try joshua's script. i can do this next monday. Thanks!! I'll let you know ! :)

avatar image Joshua · Mar 04, 2011 at 03:14 PM 0
Share

Happy to have been of help. Please select this question as the correct answer then so the bot won't keep bumping this now closed question. Upvote would be nice to of course.. ^^

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Benchmark score resuilt script 0 Answers

FPS damage arrow? (raycast shoot) 2 Answers

Benchmark FPS Counter 2 Answers

animations or code? 1 Answer

Rotate head of player based on where he's looking? 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