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

Sprites' drawcall can't be batched when using perspective camara

Discussion in '2D' started by ARintaro, Apr 10, 2022.

  1. ARintaro

    ARintaro

    Joined:
    Oct 25, 2021
    Posts:
    8
    Hello everyone
    I'm developing a 2D game with multiple layers of parallax, like Tails of Iron How, so I'm using the perspective camera.
    After the art set up the scene, I found that the scene built by ten textures actually has more than 100 Drawcalls. After I Google it, I packaged their textures into an atlas, sorted the layers, layer order, and z-axis all set to the same, but it still has more than 80 Drawcalls.
    Finally I tried to change the camera to orthogonal camera and the drawcall came down, please tell me why?
     
  2. ARintaro

    ARintaro

    Joined:
    Oct 25, 2021
    Posts:
    8
    They both use the material Sprite-Lite-Default and have exactly the same settings on SpriteRenderer.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,951
  4. ARintaro

    ARintaro

    Joined:
    Oct 25, 2021
    Posts:
    8