Search Unity

Instantiating 60000 cubes

Discussion in 'Editor & General Support' started by dreamer-, Mar 7, 2019.

  1. dreamer-

    dreamer-

    Joined:
    Dec 9, 2016
    Posts:
    25
    How to maintain a frame rate of 60 or above with 60000 cubes which are instantiated at runtime? I am currently getting around 10 FPS. The cubes use one of 3 materials. All 3 of the materials have GPU instancing enabled. The number of batches is 255. The reasons for some draw calls not being batched given by the frame debugger is "The previous instanced draw call has reached its maximum instance count" and "Objects have different materials".
     
  2. LootlabGames

    LootlabGames

    Joined:
    Nov 21, 2014
    Posts:
    343
    I would suggest to try using MeshBaker and/or GPU Instancer.
    I use both in my projects.