Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Could SRP batcher work with particles?

Discussion in 'General Graphics' started by jayatubi, May 11, 2020.

  1. jayatubi

    jayatubi

    Joined:
    Dec 9, 2013
    Posts:
    143
    I tried attach one SRP batcher compatible material to two mesh renderer the frame debugger told they are batched. Then I attached the same material to two particles, one duplicate from another, the frame debugger shows: Node is not compatible with SRP batcher. Does that mean SPR batcher couldn't work with particles?
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,239
    Hey. I've done some investigation with the owner of the SRP Batcher system, and we think it could being performance benefits to particle systems.

    So I've added an item to our roadmap for it. Thanks for the idea.
    (Probably we will add support for LineRenderer and TrailRenderer at the same time, too)
     
    DevDunk and Roy-Hu like this.
  3. jayatubi

    jayatubi

    Joined:
    Dec 9, 2013
    Posts:
    143
    Great news.
     
  4. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    979
    Hi. Is there any news for this?
     
  5. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,239
    Sorry - not yet. I’m currently trying to fix a bunch of old particle issues so I’ll try to take a look at this while I’m there. Thanks for the reminder!
     
    Kichang-Kim likes this.
  6. WellMOR_Q

    WellMOR_Q

    Joined:
    Dec 30, 2020
    Posts:
    3
    Hi!
    Is there any news for this? :)
     
  7. lionheartt

    lionheartt

    Joined:
    Nov 6, 2018
    Posts:
    1
    any news?
     
  8. Tinovdk

    Tinovdk

    Joined:
    Nov 28, 2013
    Posts:
    83
    Hi Richard,

    Is there any update on getting the particle system to be compatible with the SRP batcher?

    Thank you!
     
  9. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,392
  10. Tinovdk

    Tinovdk

    Joined:
    Nov 28, 2013
    Posts:
    83
    While similar, it's not exactly what I mean.
    The roadmap is about the VFX graph while my gripe is with the particle system that is breaking the SRP batcher.

    In our project all the opaque objects under 'DrawOpaqueObjects' are SRP batched which is great.
    But particles from the particle system under 'DrawTransparentObjects' use material property blocks and it breaks the SRP batching according to the documentation: https://docs.unity3d.com/Manual/SRPBatcher.html
    The Frame Debugger says the reason is because: "SRP: Node is not compatible with SRP batcher".
    I'm hoping there's a performant solution to using particle systems while retaining SRP batching functionality.
    upload_2022-7-15_16-2-44.png
     
    troyspencer likes this.
  11. HQF

    HQF

    Joined:
    Aug 28, 2015
    Posts:
    40
    I'm interested in this thread too - any updates? Particle system uses only dynamic batching even if material set to URP/Particles/Simple Lit
     
  12. Lo-renzo

    Lo-renzo

    Joined:
    Apr 8, 2018
    Posts:
    1,319
    HQF and Zarbuz like this.
  13. wechat_os_Qy05tDXQWJqjfOlnijSdv_0I8

    wechat_os_Qy05tDXQWJqjfOlnijSdv_0I8

    Joined:
    Mar 28, 2022
    Posts:
    1
    KirillEst likes this.