Slow Loading

I am trying to instantiate 10000 of the same simple sphere model (it is a star field). The models load up and even display the first frame almost right away. The problem is then the game “locks up” for about 15 seconds.

I made a very simple example of this. There is a simple prefab with a sphere inside. In my script I just generate however many you have specified in the script global variable. I give them random positions in the camera’s field of view.

I have zipped up the project and attached it. Is this just something I have to live with or is there something I am doing wrong or could do different?

As far as I can tell loading a lot of objects just takes a lot of time. Only Unity can improve this.