• 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 Max-TheArgentine · Mar 09, 2016 at 01:02 PM · c#physicslag

Unity 5 stuttering

Hi guys, i have a problem. a constant stuttering of the game in play mode AND in editor mode(if i move the camera in editor mode, it will produce micro stuttering too). i dont know what to touch, what to change to eliminate this stuttering. This Stuttering appears at a fixed amount of time while in play mode, lets say ever 0.5 sec and the FPS drops from 2500 to 200 and even 40, very noticeable the micro freezes. In editor it appears when changing direction of view or pressing keys.

so far i have tried:
-Restarting the editor
-trying 64 and 32 bits
-disabling Vsync in the editor, in the Nvidia panel and both at the same time.
-Nvidia Drivers updated
- i have Windows 10 Pro 64bit, I5 4690K, GTX 970 SSC, 8Gb. i tried on my old Win 7 too with the same rig.
- I suspect, in play mode, it is something related to FixedUpdate, but it only has this line of code:

 void FixedUpdate () {
           rigidBody.MovePosition (rigidBody.position+(velocity*Time.fixedDeltaTime));
 }

In the profiler you can see spikes of 99% use of the processor by the physics engine.

- I have readed other forum posts related to this problem but i havent found a solution yet.

Here a video in play mode with the profiler
https://youtu.be/CDp62AYCnK0

HEre a little video of the stuttering inside the editor, not in play mode. https://youtu.be/cW4vAZbTmFQ

Comment
Add comment · Show 4
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 Owen-Reynolds · Mar 09, 2016 at 03:24 PM 0
Share

Does it happen in a tiny demo project? A really huge scene but with almost no scripting? When did it start? If you remove that line you suspect, does it still happen? It could be your computer, or your project is doing something to cause it ... . Seems you just have to narrow it down.

Show more comments
Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by meat5000 · May 06, 2016 at 12:27 PM

Switch off Forced VSync in your NVidia control panel.

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 zorksox · Jan 26, 2018 at 06:38 AM

Try using "Exclusive Mode" in the player settings. This fixed it for me. Here is a video that outlines a bunch of potential fixes. Fixing Unity Stuttering

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Reduce Physics2D Lag 0 Answers

Objects not colliding twice 0 Answers

How to make object bounce from one bound to another? 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