Okay… I’m Creating this game for mobile platforms. I’m Using Track Sections(like straight, left , sharp right etc…) to construct the track using an editor script. All the track sections are prefabs. The number of track sections goes more than 100s. It’s Hard to split these track sections into different levels (because it’s in development stage and i also want to test it in mobile phones). Because of this my game is experiencing crash/performance issues. Is there any other way to optimise the tracks (like generating those tracks at run time, or disabling and enabling at run time).
Note: - the track has some mesh colliders and cast shadow is set to off for the stuff that doesn’t need shadows
I guess there are many options, but the only one I can think of right now is Serialization. What you could do is Serialize the position and all data of your tracks, and then delete them when they are too far away, and get them back later once the player is close enough to see them.
Here are a few links to get you started: