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 stevensu1838 · Sep 17, 2020 at 06:54 AM · updateframeratefixedupdate

Fixedupdate rate stays at 90 instead of 60

Hi all,

I've been following this official example code to test the update rate and Fixedupdate rate of my unity project.

Update rate VS Fixedupdate rate

However, my framerate appears weird (the GUI displays Update around 90 and Fixedupdate 90!). Could you please do my a favour? Why is it like this?alt text

capture11.jpg (4.2 kB)
Comment
Add comment · Show 3
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 rh_galaxy · Sep 17, 2020 at 11:20 AM 0
Share

Is it a VR project? Do you use SteamVR-plugin?

avatar image stevensu1838 rh_galaxy · Sep 17, 2020 at 12:44 PM 0
Share

Hi Yeah, exactly. It is a VR project and I use steam VR-plug in. Before the update rate was around 150(not sure what the fixedupdate rate was). However, after I used this example code to est the update rate and Fixedupdate rate of my unity project. The Update rate turns around 90 and Fixedupdate 90. As you are a master of Unity, do you know why and how I can change back to update rate 150? Thank you so much.

avatar image rh_galaxy stevensu1838 · Sep 17, 2020 at 01:56 PM 0
Share

In a VR project you can't do anything about the Update-rate - your frame rate. It is controlled by whichever hardware you run your app on. FixedUpdate-rate is set in "Project Settings"/Time/"Fixed Timestep".

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by rh_galaxy · Sep 17, 2020 at 01:32 PM

As you are using SteamVR, it is the dumb fact that the default is that they set the fixed update rate to the same as the frame rate... They override "Fixed Timestep" that you set in your Project Settings/Time. This means that your project will have different fixed update rates depending on which headset your app is running on. Varying from 72 to 144 Hz. It made my replay system fail for example, not having a fixed record and replay speed. Not only that, as you can see the rate isn't even the same throughout the program and from frame to frame, they adjust it a little every frame so that it should come close to the measured frame rate, and therefore Time.fixedDeltaTime will vary from frame to frame and not be constant like the name suggests.

Do this at the start of your GameManager code.

 SteamVR.settings.lockPhysicsUpdateRateToRenderFrequency = false;

An easy fix but I think the default behavior is wrong.

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

140 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 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 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

Getting Input every few frames? 2 Answers

Frame dependant game. Using update vs fixed update. 3 Answers

Jumping randomly doesn't work 2 Answers

Should player input be caught in Update, and then raycasting in FixedUpdate for shooting mechanics? 1 Answer

How often does the internal physics calculation get called? 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