How to optimize this script to render 1 millions of cubes in same screen?:

  1. Do it in c++ if possible
  2. Chunk the loop (ie spawn 100 per frame rather than all at once)
  3. Use InstancedStaticMeshs
  4. Possibly use an AsyncThread
2 Likes