If you have a lot of objects, you need to divide your scenario in chunks. Then you need to make some functions to load/unload (create/destroy) the objects while the player moves on the ground.