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
1
Question by OmegaVemon · Nov 27, 2010 at 01:33 AM · fpsdebugwindowpreformance

Show an FPS window.

I want to make a window showing the game's FPS for the player to see and help me telling how is the game performing in their PCs. Is there some kind of variable with such value?

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

3 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by Eric5h5 · Nov 27, 2010 at 02:08 AM

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

Comment
Add comment · Show 5 · 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 OmegaVemon · Nov 27, 2010 at 02:18 AM 0
Share

Thanks! Working just fine!

avatar image yigitcan · Dec 30, 2011 at 10:16 AM 0
Share

Thank you!

avatar image Zbigniew Wiadro · Dec 11, 2013 at 08:10 PM 0
Share

The script with C# works fantastic!

avatar image vbs · Jan 02, 2015 at 12:21 AM 0
Share

The external resource has disappeared. Answers that exist in external resources should not be acceptable. Or should be moderated as unacceptable. Answers should be explicity be described on this forum.

avatar image unity_DKqnJkGo8MOKYQ · Jan 22, 2019 at 05:30 AM 0
Share

Dead link.

avatar image
0

Answer by oliver-jones · Nov 27, 2010 at 01:45 AM

To clarify - you want an in-game window that shows your computers current performance, to see whether it can handle your game ... ? By FPS I would imagine you mean Frames Per Second? Because at first, I thought you were talking about First Person Shooters.

If you want to display your Maximum number of frames queued up by graphics driver, then you add this to your script:

static var maxQueuedFrames : int

function Update(){ print(maxQueuedFrames); }

This will return to your console, if you want it in a GUI, then just add a label in an OnGUI function with the maxQueuedFrames as your label.

Or there is: maxQueuedFrames - The total number of frames that have passed.

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 dentedpixel · Feb 27, 2013 at 12:52 PM

If you would like a more graphical display I would suggest FPS Graph, it will give you the frame rate and other performance indicators.

FPS Graph


header.jpg (44.4 kB)
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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I change my animation window layout? 0 Answers

Import Componet ( Variable ) Error Unexpected Token 3 Answers

How to Debug in a standalone build? 4 Answers

MonoDevelop Opening New Window 1 Answer

Certain gameobjects not in mobile build 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