• 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 /
  • Help Room /
avatar image
9
Question by Rickywild · Mar 19, 2016 at 05:03 PM · physicsprofilerlaggylagsspikes

Huge Physics Spikes (In empty scene and populated scene)

Note: This is still present in Unity 5.3.5f1 64-bit Personal Edition. This is the version I was told the bug was fixed. The spikes aren't as many but are still present. If you're experiencing this problem, I recommend using Unity 5.0.2f1 (64-bit) where this doesn't happen.

Hey everyone,

I'm having a problem with development lately and it's preventing me from going any further with it. It would seem with or without anything in a scene the Profiler is reporting huge game stopping spikes under Physics and Others (majority is due to Physics). This is giving a lag effect to the game and can slow it down for a second at random intervals throughout game play.

I've turned everything off in the layer collision matrix under Physics and under 2D Physics only set to use what I need. In the scene i'm reporting these spikes, there are no rigid body. I'm simply parallax scrolling some quad textures. There are a few directional lights, only one turned on at a time, with the exception of two running for a second or two.

I have tried experimenting with the Time To Sleep property under 2D physics settings,however it isn't helping solve the problem. I've contacted customer service and been advised to reach out to the community for help.

I'm running Unity Personal Edition 5.2.3p3. Below are a few screenshots of the profiler, these are the results from the start screen as described above

alt text alt text

Sometimes these spikes get much bigger, they're inconsistent and always present. Any help would be really really appreciated! I just want to move on and this has prevented me to do so for a few weeks now :(

4.png (87.2 kB)
11.png (97.4 kB)
Comment
Add comment · Show 12
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 Rickywild · Mar 21, 2016 at 05:37 PM 0
Share

These spikes are still present in a empty project in a new empty scene, see below

alt text

Does anyone know of a Unity build where this doesn't happen? I've been out of development for nearly two weeks now and it's killing me not doing anything about it.

untitled-1.png (124.1 kB)
avatar image Bunny83 · Mar 21, 2016 at 11:57 PM 0
Share

I can't reproduce the problem. I use Unity 5.3.3f1 64bit on Win8.1 64bit. With Vsync turned off i get this with an empty scene. You really should use a different playmode tint color as we barely see anything. Also do a deep profile and see what changes. You also should select / highlight one of the spikes when doing a screenshot and expand the top item in the list below.

It might be something related to your hardware / OS version.

ps: Don't post an answer if the post doesn't answer the question.

avatar image andymilsom · Mar 22, 2016 at 12:48 PM 0
Share

Hi

Can you click on the spike in the editor? This will give more information in the overview, also expand the tree in the overview that has the high time(ms) associated with it.

Do your quad textures that you are using for parallax scrolling have any Collider components on them? And are you doing any non-uniform scaling on them?

Can you make the screenshots easier to see also by not dark tinting as much?

Thanks Andy

avatar image Rickywild · Mar 23, 2016 at 12:56 PM 0
Share

Hi,

Thank you for the help!

@Bunny83 These results are consistent with Vsync on or off, in some cases worse performance when on. In one of the screenshots you can see the deep profile is active.

@andymilsom I've clicked onto the spikes and expanded where i can thank you. Non of hem have any Collider components on them. All of the them consist of a Quad (mesh filter), $$anonymous$$esh Renderer, a material for lighting to effect it and a script.

If I can provide any more information please tell, screenshots below

alt text alt text

light2.png (167.7 kB)
light.png (170.0 kB)
avatar image Rickywild Rickywild · Mar 23, 2016 at 01:07 PM 0
Share

and if it helps a note on my OS version and hardware,

OS: Windows 10 Pro 64bit CPU: A$$anonymous$$D Phenom II X6 1075T 3000$$anonymous$$HZ 6 CORE RA$$anonymous$$: 8GB GPU: A$$anonymous$$D Radeon HD 6700 Series -$$anonymous$$em Size: 512$$anonymous$$B -Core $$anonymous$$HZ: 700 -$$anonymous$$em $$anonymous$$HZ: 1150

avatar image Rickywild Rickywild · Mar 23, 2016 at 01:19 PM 0
Share

Also sorry I forgot to answer, the Quads are non uniform scaled, in each of their transform components, their x scale and y scale have different values. Is this causing the poor performance then? I've just done a quick google search and it would seem non uniform scaling isn't recommended ever. There are 6 quads in the startscreen scene, each with a child for scrolling effect. So a total of 12 quads that are all non uniform scaled.

avatar image andymilsom Rickywild · Mar 23, 2016 at 01:51 PM 1
Share

Non uniform scaling on a quad without a Collider will not affect the Physics,

When using non-uniform scaling on simple quads without a Collider, It will not be a problem.

This looks like it could be a bug, Have you tried running your project in the latest release of Unity?

avatar image Rickywild andymilsom · Mar 23, 2016 at 05:03 PM 0
Share

Ok thanks. No I was hoping I wouldn't have too. I will update to the latest Unity release tonight and report back if the problem is solved. Thanks again

Show more comments
Show more comments

6 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Sparrowfc · Dec 12, 2016 at 09:21 AM

Thank for this question to save my time. I have a project for 5.3.4 and a project for 5.3.6p2. And there's no spike in 5.3.6p2 .

Now confirming it's an Unity bug, I can move on. :)

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
  • ‹
  • 1
  • 2

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

75 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

Related Questions

How can i solve the spikes on my empty project ? 0 Answers

Intervals of spikes of Graphics.PresentAndSync show up in profiler 0 Answers

Backround roll 0 Answers

Physics and Rendering Optimization Issues 0 Answers

Editor is lagging 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