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 /
This question was closed May 06, 2016 at 06:22 PM by SgtShadowWalker for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by SgtShadowWalker · Apr 27, 2016 at 03:05 PM · 2dspeedqualitytimescalefast

(2D) Game runs faster when quality is set to low

Hi,

So I'm experiencing a problem where my 2D game is speeding up as I lower the quality of the game (Through the launcher or In-Editor; Project Settings > Quality). This is something I can't seem to fix on my own except for leaving some unnecessary settings, like anti-aliasing, on.

Does anyone know what might be causing this problem?

-Martin

Comment
Add comment · Show 1
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 gkepets · Apr 27, 2016 at 03:10 PM 0
Share

I had this problem as well- basically if the game runs faster (more fps), then some function you call such as transform.translate or any transform will be faster because it is called every frame. I think you can use a fixedUpdate or lock the fps.

1 Reply

  • Sort: 
avatar image
8
Best Answer

Answer by Dave-Carlile · Apr 27, 2016 at 03:12 PM

I assume you mean your game objects are moving faster, not just a higher frame rate...

When moving things you need to do that in a frame rate independent manner. You can do this by doing updates in the FixedUpdate method which is always called at a consistent rate regardless of display frame rate. Or you can multiply values by Time.deltaTime before applying them to game objects so the movements are scaled by the frame speed.

For example, if you want an object to move at 10 units per second on the x axis then adding 10 * Time.deltaTime to x will make it move at that rate since deltaTime is the elapsed time in seconds for the previous frame.

Comment
Add comment · Show 1 · 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 Viaticum · Apr 28, 2016 at 08:49 AM 0
Share

I want to add Time.deltaTime is extremely useful for frame rate independent program$$anonymous$$g in Unity and worth understanding. It is useful in many aspects of 2D program$$anonymous$$g with Unity (try it with angles and scale factors when doing manual animations!).

Time.deltaTime

Follow this Question

Answers Answers and Comments

66 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

Related Questions

Sprite quality is very poor 3 Answers

Game running at different speeds on different quality levels. 1 Answer

How do you pause or set speed of Animator layer/state? 2 Answers

How to limit my player speed (2D)? 2 Answers

Issues with 2d movement 2 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