Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

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. katasteel

    katasteel

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