Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

WebGL SRP and Dynamic batching support?

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

  1. ivank

    ivank

    Joined:
    Nov 16, 2013
    Posts:
    46
    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:
    242
    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:
    392
    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:
    46
    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. rob_unity7

    rob_unity7

    Joined:
    Feb 8, 2019
    Posts:
    37
    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.
     
unityunity