Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

WebGL SRP and Dynamic batching support?

Discussion in 'Web' started by ivank, Aug 9, 2019.

  1. ivank

    ivank

    Joined:
    Nov 16, 2013
    Posts:
    105
    Hello, throughout the documentation I have not been able to find a clear information if WebGL in LWRP projects supports the SRP batching
    and if yes how it interacts with the Dynamic one;

    Can any of the gurus here shed a light on this, please? :)

    Thanks and regards
     
  2. doctorpangloss

    doctorpangloss

    Joined:
    Feb 20, 2013
    Posts:
    270
    LWRP should be supported in WebGL 2. But if you build something that is meant to run in Safari, on any platform, you must use WebGL 1.
     
  3. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    589
    It also partially supports WebGL1, but you'll have to disable most of the effects :/
     
    doctorpangloss likes this.
  4. ivank

    ivank

    Joined:
    Nov 16, 2013
    Posts:
    105
    Hi, thanks for your replays and apology for my question not being clear enough.
    I am aware that LWRP is supported in WebGL2.
    The question is - does WebGL2 support SRP batcher (which is part of LWRP)? I am not quite sure as WebGL is not explicitly mentioned on the list in the relevant Unity blog entry...
    And if so, how the SRP Batcher goes along with the Dynamic Batcher
     
  5. robrab2000-aa

    robrab2000-aa

    Joined:
    Feb 8, 2019
    Posts:
    117
    Hi, I'm curious about this too. We're running WebGL2 and from what I can see it is not working. This is based on my profiling where my tri count (in hte editor) goes from 150k to 3k srp batcher off to on. in webgl its just simply showing 150k.