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
1
Question by ratamorph · May 06, 2012 at 05:59 PM · iosparticlesoptimizationparticle systemshuriken

Particle System Overhead

I've been profiling my game in the new iPad and noticed I got a large overhead on the cpu player stat. I then profile it using the editor profiler attached to the iOS player and there seems to be a lot of processing going on ParticleSystem.Update, I'm not constantly shooting out particles or anything so why the overhead?

Here's captures of the internal profiler and the editor profiler, both on the same scene and same spot. alt text

alt text

Screen Shot 2012-05-06 at 12.32.05 PM.png (33.1 kB)
Screen Shot 2012-05-06 at 12.31.35 PM.png (106.4 kB)
Comment
Add comment · Show 6
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 soulburner · Sep 19, 2012 at 11:59 PM 0
Share

I've got the same problem. I've created about 50 of particle systems (shuriken), then disabled all of them (renderer.enabled = false) and stopped them.

But anyway, ParticleSystem.Update process eats great amount of CPU power. I don't know what to do. $$anonymous$$y FPS on iPad dropped to 7 FPS. :(

avatar image ratamorph · Sep 20, 2012 at 12:06 AM 0
Share

What I did in my case was to disable the game objects that have the particle system components on. You can test if a particle system has any alive particles in an update loop and diable them when the alive particles reaches zero.

This is just a workaround. I'd love some official response from the Unity devs, maybe we are all doing something wrong, or maybe it's a bug. Anyway it's always good to know.

avatar image soulburner · Sep 20, 2012 at 08:48 AM 0
Share

Hmm... I don't have gameobjects with particles. $$anonymous$$y particle systems are separate objects that just instantiated into the world. So, there's no solution for me yet.

avatar image 3agle · Sep 20, 2012 at 08:56 AM 0
Share

Ins$$anonymous$$d of disabling the renderer, try using ParticleSystem.Pause() or Stop().

avatar image soulburner · Sep 20, 2012 at 09:50 AM 0
Share

I've stopped them of course. No effect. Here's my question: http://answers.unity3d.com/questions/320283/shuriken-particles-strange-load-cpu-with-particles.html

Show more comments

6 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Bunny83 · May 06, 2012 at 07:00 PM

If you use the ParticleAnimator component (responsible for moving the particles), it have to calculate the movement equatation (pos = pos + velocity) adjust the energy (livetime) for each particle and finally create / update the vertices of all particles. How many particles are there in your scene?

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 ratamorph · May 07, 2012 at 03:42 PM 0
Share

I'm using the new particle system which doesn't have the ParticleAnimator component per say, but I'm applying movement, fading and all that stuff to my particles. In all there's around 50 different particle effects in the scene but non of them are emitting anything at the point I'm profiling. I noticed that if I deactivate the object containing the particle effect the overhead goes down.

avatar image
1

Answer by codestage · Aug 01, 2012 at 09:24 PM

I have similar issue with Shuriken particles. I have about 200 GameObjects with ParticleSystem attached, but none of them doesn't emit particles automatically. I see high load caused by ParticleSystem.Update though. I tried to disable GameObjects and all ParticleSystem items as well, but with no result (

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
-1

Answer by Arowx · Aug 07, 2015 at 06:32 PM

I think the issue is the profiler, if you look at the self ms column it is a huge percentage of the actual time spent. This indicates that the profiler is spending a lot of the total apparent time.

Maybe Unity could have an actual column where it subtracts the profilers own time from the total time in that area.

Possibly the code is complex or has to iterate a lot over all particles and particle systems.

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 VinQbator · Jan 19, 2018 at 04:36 AM 0
Share

Actually, self refers to time spent in the method itself compared to calling other methods from it. LIN$$anonymous$$

avatar image
0

Answer by soulburner · Sep 27, 2012 at 10:04 AM

So, I've re-wrote all my particles from shuriken to legacy particles and CPU load falled to 0% when all particles are stopped.

I think it is the only solution for now.

More you can see in my question: http://answers.unity3d.com/questions/320283/shuriken-particles-strange-load-cpu-with-particles.html

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 gooncorp · Aug 07, 2014 at 10:31 PM

legacy are faster. the news ones have more functionality but thats just more conditions to check per cycle. if you can do it with the old system use that because its faster based on my experience.

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.

Follow this Question

Answers Answers and Comments

13 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

Related Questions

Particle System(Shuriken) optimization problem 1 Answer

Inherit velocity in shuriken particle system goes haywire in build version 0 Answers

Particle Systems Not Showing Up - Windows Phone 0 Answers

Particles in Particle System rendering as white square in iOS build 1 Answer

Particle system does not re-emit until Start Lifetime elapsed 4 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