Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Spikes on iPhone3/4 every other minute. Any ideas how to find out why and/or get rid of them?

$
0
0
Hello, we're making a game for iOS. When testing on iPhone3 and 4, the performance is fine, but every other minute we get a very short but noticable stutter. Normally I'd suspect that's the garbage collector, but the profiler shows nothing pointing in that direction - rather stable memory, no garbage collector peaks in the profiler. Instead, I got those candidates: - Mesh.DrawVBO - CullSceneObjects - Device.Present - Mesh.SubmitVBO - And occasionally Physics.Simulate - Sometimes but rather seldom one of our scripts Here's a link to some [profiler example pictures][1] - note that I'm not on the frame so you can see the actual spike, but I markek the method so you can see which one causes the spike. Assuming that it might have to do something with the level we had, I made a [simple level][2] with a static camera. The character you see rolls and jumps. There is a simple NGUI gui involved to control the character. Nothing else is happening - still, spikes. Here are the logs from the iPhone Unity internal profiler: - [Normal level internal profiler logs][3] - [Simple level internal profiler logs][4] I'll try to make an even more simple level, but I thought it couldn't hurt to ask now - maybe somebody has an idea. We're using: - Unity 4.5 - NGUI 2.7 - 2D Toolkit, newest version So, in conclusion, we get a noticable stutter every other minute even in a rather simple level. We aren't creating new objects as far as I see and memory seems fine to me. [1]: https://imgur.com/a/lk4ix [2]: https://i.imgur.com/CQlfoqL.jpg [3]: http://pastebin.com/Z6UZjmVt [4]: http://pastebin.com/QgxrAgHb

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>