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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

SpriteShapes don't batch?

Discussion in '2D' started by CDF, May 9, 2020.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,283
    Was wondering if sprite shape renderers are supposed to batch render?
    Currently it doesn't seem so, I've tried the Built-In renderer and URP (7.3.1 - 8.1.0)
    No material, SRP batcher or dynamic batching settings seems to make these sprite shapes batch.

    so if I have 300 sprite shapes on screen, that is 300 draw calls :(

    Any chance sprite shapes may someday batch render?
     
  2. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    619
    Unlike Sprite and Mesh assets that contain static data SpriteShape only defines the constraints and SpriteShapeRenderer generates the actual data which is more dynamic in nature. Hence no batching yet.

    However we will take a look add support for SRP batching in the future. Will post an update on this thread.
     
  3. spiderspy

    spiderspy

    Joined:
    Aug 1, 2013
    Posts:
    16
    Then why is it displayed to be used on static environments?