Frame Rate Problem using lots of objects - please help!
Hi guys,
Basically I am wanting to plot the positions of the 100,000 closest stars with their colours and relative sizes and be able to fly around them, however I am encountering some framerate issues.
Each star I plot is just a spherical game object. When I plot 10,000 stars the framerate drops to around 30fps whenever I look into the distance and have around 5000 objects onscreen. Plotting 100,000 completely kills the game and is unplayable.
I have tried spacing the stars further away from each other but this doesn't help too much. I could also cut the rendering distance - I am not sure how to do this and part of the appeal is to be able to see lots of stars at once.
Does anyone have any advice on how to keep the framerate high? Is there a more efficient way of plotting these instead of using 100,000 separate game objects?
Thanks in advance.
Basically I am wanting to plot the positions of the 100,000 closest stars with their colours and relative sizes and be able to fly around them, however I am encountering some framerate issues.
Each star I plot is just a spherical game object. When I plot 10,000 stars the framerate drops to around 30fps whenever I look into the distance and have around 5000 objects onscreen. Plotting 100,000 completely kills the game and is unplayable.
I have tried spacing the stars further away from each other but this doesn't help too much. I could also cut the rendering distance - I am not sure how to do this and part of the appeal is to be able to see lots of stars at once.
Does anyone have any advice on how to keep the framerate high? Is there a more efficient way of plotting these instead of using 100,000 separate game objects?
Thanks in advance.
