Hey guys!
I have a 3D world and in that world I want to instantiate people based on the player’s location or something similar. I don’t want to load all people at once, as that will put load on memory. I’ve seen that many popular games also do this. I just need guidance on how to accomplish this. I have wayPoints set throughout the game as pathways for people to walk on.
I was thinking maybe create a certain number of people around the player’s radius and put them on the random wayPoints inside the radius, then delete people if they are outside the radius. Is this good, or is there a better way?
I eventually want this on mobile phones, so performance is a must.
Update: What if I leave all these people in the scene, what kind of performance hit should i expect? They all have scripts, colliders, meshes, etc. They’re just walking around, not doing much. But they are large in number, around 500.
Many Thanks!