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 beernsnow · Dec 09, 2013 at 12:13 PM · updatetimefixedupdatetimestep

Fixed timestep...

Can anyone explain me in depth what is fixed Timestep, I am not able to understand by reading the documentation..

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

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by whydoidoit · Dec 09, 2013 at 12:17 PM

So it's to do with Physics. Basically the physics system does not run every frame, it runs in order to catch up with the current frame rate. Every time the physics loop runs it moves the time forward by the fixed time step.

So if your fixed time step is 0.02s you are asking for 50 updates a second. Let's say your game is running at 100fps - the physics system will be called once every other frame (roughly) so that physics keeps up with the game.

If your game is running at 25fps the physics system will run twice every frame for the same reason.

So basically every time the physics loop runs "0.02" seconds will have passed in simulation time - irrespective of how long has passed in real time since the last call. The loop will continue to go around while the physics time is behind the real time of the game.

Comment
Add comment · Show 3 · 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 beernsnow · Dec 09, 2013 at 12:39 PM 0
Share

so which one is better 100fps and 50FixedUpdates/sec or 25fps and 50FixedUpdates/sec...???

avatar image whydoidoit · Dec 09, 2013 at 01:47 PM 0
Share

Often on slow devices the high fixed frame rate will make everything worse because physics will run multiple times.

So 25fps game is struggling to do 2 physics updates at the same time.

avatar image beernsnow · Dec 11, 2013 at 05:56 PM 0
Share

okkk,,,i got it ,,so you are saying that its better to have less physics updates(FixedUpdates/sec) when we have more fps in slower devices(if both compared).

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

17 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

Related Questions

"Fast" fixed timestep 1 Answer

InvokeRepeating OR Update OR FIxedUpdate? 2 Answers

A node in a childnode? 1 Answer

How to perform a task in a specified time 2 Answers

Slow update best practice 0 Answers


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