Hey guys,
I’m really frustrated to get my game working smoothly.
I tried anything to optimize it.
The even worse thing is, that I’m working with an iPhone 4, which will make it an even harder task to optimize it on older devices.
But first things first.
I’m working on a 2D game.
I have a 3d Sphere as my game object, and dozens of obstacles. These obstacles are 2d Textures, which are attached to custom planes (Planes with only 2 tris). My Background is 640*1920 and repeats itself.
There are only a handful of different obstacles (3-5).
If I’m running the game, i get about 10 Drawcalls and up to 30 batched ones.
I set the FPS limit to 60, since its really sluggish with 30.
The game runs mostly ok, but sometimes I get hickups, where for a milisecond the game lags, and precisely these lags I want to trash.
What should I do? Is it maybe the texture size, since I’m working with Retina optimized ones. Or are the batched draw calls the culprits? (since I’m not higher than 10 separate draw calls).
I know that Unity is a bit weak on the 2d side, but I heard that its mostly because of the draw calls.
Heres a sketch, maybe it helps to illustrate it a bit better. ImageShack - Best place for all of your image hosting and image sharing needs
I appreciate any help.
Thank you.