Search Unity

Resolved Fastest way to instantiate (and render) thousands of GameObjects with URP

Discussion in 'SRP Dev Blitz Day 2022 - Q&A' started by pahe, Sep 29, 2022.

  1. pahe

    pahe

    Joined:
    May 10, 2011
    Posts:
    543
    Hi.

    I'd like to know what is the best advice to instantiate thousands of GameObjects (or similar) as fast as possible in URP and then render them all per frame. I know of Graphics.RenderMeshInstanced but are there any other ways? And if not, what would be the best way to structure non-similar meshes into groups for renderering with Graphics.RenderMeshInstanced?

    Thanks
     
  2. LukasCh

    LukasCh

    Unity Technologies

    Joined:
    Mar 9, 2015
    Posts:
    102
  3. pahe

    pahe

    Joined:
    May 10, 2011
    Posts:
    543
    Thanks. Is there any official tutorial for this maybe? I'm developing for the Nintendo Switch and I'm not the most proficient shader coder.