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 /
avatar image
0
Question by xainulabdeen · Jan 03, 2019 at 07:17 AM · androidfpsparticle systemperformance optimizationlow fps

Gems shine effect (particle system ) reducing my performance.

Hello guys !!! I am working on project having multiple pick able objects Gems having shine (particle system) on it . This particle system shows spark shine effect with loop enabled from particle system. My problem is that if i have to add multiple gems like 40+ then shine particle will also increase and its reducing my frame rate to like 30 to 15 fps . Even i have optimized spark texture (10 kb) , but problems still there.

Fps shown is on **Stand Alone**  but I have tested on android device

snip.png (300.9 kB)
Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by xainulabdeen · Jan 03, 2019 at 12:06 PM

After a long time spent I have come to the solution . Divide your gems in to 3 - 4 Patches and change the repeat duration of spark particle for each patch . like first patch duration 5 sec , second patch 10 sec and third patch to 15 sec so they will not rendered all at the same time eventually reducing the rendering load .

Comment
Add comment · Show 6 · 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 yayguy · Jan 03, 2019 at 08:32 AM 0
Share

The particle systems aren't causing the lag, optimizing spark texture won't do much on it.

Try to make your particles as opaque as possible. The problem is the transparent particles stacking on top of each other which makes it really laggy on android/mobile platforms.

avatar image xainulabdeen yayguy · Jan 03, 2019 at 10:26 AM 1
Share

Thanks a lot for your quick response . I will try !!!!

avatar image xainulabdeen yayguy · Jan 03, 2019 at 10:41 AM 1
Share

Change transparency of material or changing it from particle system component like color over life time . if your talking about changing from material then i cant do this because shader of particle is set to mobile/particles/additive , this shader does't shows the color property .However change material to Particle/additive show color property but it shows the alert sign "this shader not good for mobile platform"....

avatar image yayguy xainulabdeen · Jan 03, 2019 at 12:12 PM 0
Share

1 - $$anonymous$$ake the particle system as small as you can, to reduce overdraw and general lag.

2 - Consider transfering the the particle system into an animation/spriting. (Which takes a long time but usually works)

RECO$$anonymous$$$$anonymous$$ENDED 3 - Try to reduce the amount of particle systems being emitted at once

Using Vector3.Distance you can calculate the difference of two GOs position, then you can use that knowledge to

 if(Vector3.Distance(gem.position, player.position) <= maxdistance )
 {
  ParticleSystem.Stop();
 }

for my reference, https://docs.unity3d.com/ScriptReference/Vector3.Distance.html. I hoped this helped :)

If you want, add me to your project via Unity co-op. Ill fix it, and you can save your project before downloading $$anonymous$$e.

Side note: If you have discord and would like to add me: pr0per #0369

avatar image yayguy · Jan 03, 2019 at 12:22 PM 0
Share

Good job! How long is your particle system? Just curious.

avatar image xainulabdeen yayguy · Jan 03, 2019 at 02:24 PM 0
Share

local scale of object is 1 also 3d size in particle system is 1.

avatar image
2

Answer by ifurkend · Jan 03, 2019 at 09:14 AM

Transparent overdraw aside, you may want to change the layer of your sparkle particle systems to TransparentFX and use a new camera to render this layer only (remove this layer from the main camera, parent the newcam under main cam, change clear flags to depth only.) This way drawcalls of your sparkles can be batched which improves performance.

Comment
Add comment · Show 3 · 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 xainulabdeen · Jan 03, 2019 at 10:29 AM 0
Share

I have already done the same thing . Adding two cameras and rendering spark particle from another camera . but issue is that particles will not hide behind the walls or hurdles . !!!!! However thanks a lot for your kind response . I will retry your approach too...

avatar image ifurkend · Jan 03, 2019 at 11:25 AM 0
Share

Yes, there is the trade off for drawcall batching, But more importantly whether this workaround improves your performance or not, otherwise the huge drop of framerate may not be related to particles (directly) and you should look more carefully at the profiler.

avatar image xainulabdeen ifurkend · Jan 03, 2019 at 11:42 AM 0
Share

I have completely checked from every aspect .... environment is fully optimized and low poly code is also optimized. when i remove particles my frame rate remains fix to 29.98 - 30 fps . but on enabling particles it drops the frame , not every time like after 5 secs.

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

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

Low FPS in very simple Android game 1 Answer

Unity 2019.3 LWRP strange Performance Issue on android 0 Answers

Please help - new game has models flickering with very little in scene. Fresh reinstall of windows and unity. Code seems fairly well optimised 1 Answer

android game slower on pc than on mobile 3 Answers

adjust Sensitifity of joystick.js (mobile) 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