• 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: T$$anonymous$$s is still present in Unity 5.3.5f1 64-bit Personal Edition. T$$anonymous$$s is the version I was told the bug was fixed. The spikes aren't as many but are still present. If you're experiencing t$$anonymous$$s problem, I recommend using Unity 5.0.2f1 (64-bit) where t$$anonymous$$s 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 anyt$$anonymous$$ng in a scene the Profiler is reporting huge game stopping spikes under Physics and Others (majority is due to Physics). T$$anonymous$$s 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 everyt$$anonymous$$ng 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 t$$anonymous$$s 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), Mesh 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: AMD Phenom II X6 1075T 3000MHZ 6 CORE RAM: 8GB GPU: AMD Radeon HD 6700 Series -Mem Size: 512MB -Core MHZ: 700 -Mem MHZ: 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
1
Best Answer

Answer by Rickywild · Apr 21, 2016 at 02:52 PM

T$$anonymous$$s doesn't happen in Unity 5.0.2f1 (64-bit). I'm marking t$$anonymous$$s as solved as t$$anonymous$$s version of Unity can be used to continue development.

Comment
Add comment · Show 2 · 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 Rickywild · Jun 23, 2016 at 12:45 PM 0
Share

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.

avatar image slake_it · Nov 22, 2016 at 10:21 AM 0
Share

any updates on this in the latest unity version ?

avatar image
1

Answer by achimmihca · Mar 28, 2016 at 03:24 PM

Since I removed NGUI from my project, I don't have any more of those spikes in Physics.Processing.

I had the same issue: First I noticed heavy stuttering randomly in simple scenes. When I checked the profiler it showed spikes at random in Physics.Processing. They needed about 33ms to 60ms (30 to 15 FPS). Even in an empty scene they appeared. Even in a new project they appeared. Only when I restarted my PC, opened Unity and created a new project they were gone. However, when I opened my project and a scene, the spikes were back. Again I restarted my PC. The only tools I used, w$$anonymous$$ch don't s$$anonymous$$p with Unity, were NGUI and iTween. So I created a new project and imported first iTween and then NGUI. No spikes. But after I added NGUI objects (just basics and a button) the spikes showed up. As soon as they appeared once, they also showed up in empty scenes. Now I re-created my user interface with Unity UI (works like a charm by the way) and the spikes are gone.

In conclusion: I t$$anonymous$$nk there is somet$$anonymous$$ng in my NGUI version (version 2.7.0) that causes those spikes in Physics.Processing as soon as it is loaded and until it is released somehow.

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 Rickywild · Mar 29, 2016 at 05:55 PM 0
Share

Interesting, thanks for the comment. I don't use NGUI or iTween unfortunately. I have no idea why it's doing this. All my drivers are up to date I have the latest Unity installed and it's not as if there's much going off in the game. Still no solution.

Edit- I've been told this is fixed in 5.3.5 however that won't be released for a few weeks, maybe longer.

avatar image
0

Answer by Yossarian123 · Sep 28, 2016 at 10:53 PM

I was seeing Huge Physics.Processing spikes in Unity both an empty scene and the scene for my game. I counted 3 spikes in 1 minute on the empty scene and 10 spikes in one minute on my game.

I restarted my computer and ran unity without a bunch of other programs running on my computer. It didn't solve the problem outright, but it does seem like there are fewer spikes. There was 1 Huge Physics.Processing spike in 1 minute on the empty scene and 0 Huge Physics.Processing spikes in 1 minute on my game. These spikes seem really random though and I have no idea what causes them.

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 FishTard3Dart · Oct 21, 2016 at 07:18 PM

I had the exact same problem.. There were physics Spikes in my Game Scene aswell in an empty scene.

FIXED by Updating to version Unity 5.4.2f2 (64-bit)

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 OZAV · Nov 21, 2016 at 11:12 AM

I'm suddenly also having t$$anonymous$$s issue, in Unity Plus 5.4.1f1... Before these spikes, my 15 GIG large project was ruing at 70 FPS to 200 FPS (never lower). Now, i'm having these "CPU 98% overhead" (Profiler) spikes, for no apparent reason... (even simple update is now needed to shoot them, by random, and stall my game play in Editor, every now and than, for a second or two each time... My goodness... what other problems we are running into, with every new Unity Update ? (every update - somet$$anonymous$$ng else screws up, on another corner). T$$anonymous$$s is not worth (any) of my paying unity Plus money, not really, i must say it, to be honest ... (on any of computers of me or my staff, there is now t$$anonymous$$s gustly issue ...).

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

Backround roll 0 Answers

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

Editor is lagging 2 Answers

Physics and Rendering Optimization Issues 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