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 /
avatar image
1
Question by XeviaN360 · Sep 01, 2011 at 07:43 AM · fpswindowsframerate

Windows UPS (update per seconds) always capped to 65 (Windows 7 or XP, Nvidia or ATI)

Hi All! Unity 3.4, tested on Windows 7 64 bit, Windows XP, NVidia cards, ATI cards. I made a simple FPS (UPS) counter and i realize that on Windows (VBLank disabled) Unity does always around 65 fps. Tested the same Project on Mac: 200-300 fps. Why?

That is the script:

 using UnityEngine;
 using System.Collections;
 
 public class FPScounter : MonoBehaviour
 {
     private float elapsed;
     private int counter;
 
     void Start ()
     {
         counter = 0;
     }   
 
     void LateUpdate ()
     {
         elapsed+=Time.deltaTime;
         counter++;
         if (elapsed>=1.0f)
         {
             elapsed=0;
             Debug.Log(counter.ToString());
             counter=0;
         }
     }
 }
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
0

Answer by aldonaletto · Sep 01, 2011 at 12:04 PM

That's a good point! I run this in my PC (XP Intel Core Duo 1.8GHz) and the result was the same: 64 to 65 fps. But, when I clicked on the Stats button over the Game view, Unity displayed about 2.0mS / 500 fps!
I then switched the sync mode to Every Blank: your FPS = 61, Unity = about 14mS / 70fps.
Changing the sync mode to Every Second Blank: your FPS = 31, Unity = about 30mS / 33fps.

It seems that Unity measures the time taken by the scene rendering process and displays it in the Stats panel, and the fps it shows is simply 1/rendering time - just to give us an idea about the frame rate. Thus, the fps counted does not mean the Win Unity is slower (it seems to be faster in this case: 500 fps in my slow machine versus 300 fps in your Mac)
I suppose the mismatch between PC and MAC Unity versions is due to hardware differences: while MACs are uniform and predictable like a nazi parade, PCs look more like a Frankenstein army - each PC is an unpredictable combination of pieces of different brands and models. Maybe the free running option in PCs rendered headaches to the Unity team, so they decided to fix the framerate in the Windows implementation.

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 XeviaN360 · Sep 01, 2011 at 01:48 PM

You are right. FPS measured in Stats are only relative to the rendering process. It's not a real fps indicator. Unity measures the time taken by all your renderings and calculates a theoretical framerate based only on it. I've used many different engines on pc and this is the first time i see something like that. It's not really a problem, but i'd like to have the same behaviour on PCs and Macs.

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 aXon · Sep 07, 2011 at 02:29 PM

Same thing here. Need to know why!

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Dropping frame rate in NGUI UIDraggable Panel. 1 Answer

I have a lot of lights but they drops framerate 1 Answer

Game seems to be locked to 30FPS 1 Answer

Controlling framerate with LWRP 0 Answers

How to collapse the frame rate to 60 fps? 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