So, I'm a total Unity noob and pretty much a game dev noob. For my first project, I'm creating a 2D infinite runner. I may never end up releasing it, but if I do it'll be on mobile as the primary platform. As such, I've seen a lot of people saying you need to be very mindful of performance.
So, I'm just wondering, what is "better" performance wise". Moving my character and camera, or moving all of the other objects in the scene? I've see examples of it done both ways and am not sure which method I should use. In my mind, it seems like moving 2 objects (character, camera) in the scene would probably perform better than moving dozens (coins, platforms, obstacles, etc). But as I'm new to Unity and pretty much game dev in general, I wanted to see what the experts might say about it. My only concern with moving just my character and camera is "world size". Can I move my character and camera to the right forever without worrying about it? This [video][1] mentions that he has to "RepositionWorld" every once in a while to avoid floating point errors. Would anyone have any examples of a "RepositionWorld" that I can look at?
[1]: http://youtu.be/VkGG9Umag0M?t=8m42s
↧