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

Question How to get better performance in 2DShadowCaster?

Discussion in '2D' started by GGyyYE, Aug 22, 2020.

  1. GGyyYE

    GGyyYE

    Joined:
    Mar 5, 2020
    Posts:
    1
    In my case, I have these in my tilemap world scene:
    1x Global Light 2D
    80+ 2DShadowCaster, Most of them (70+) is outside of my camera's range.
    (unity version :2019.4.5 urp 7.4.3)

    And when I add this :
    1x Point Light 2D

    Before:
    1 Batches
    406 Tris 812 Verts

    After:
    387 Batches
    18.3k Tris 19.5k Verts

    Those 2DShadowCaster also out of Point Light2D 's range

    Hard to accept it on mobile platforms.
    Is there any good suggestion to optimize this?
     
    Last edited: Aug 22, 2020