- Home /
EZGUI and SpriteManager 2 iphone off screen menus performance.
I have a quick question about setup and performance for EZGUI and SpriteManager 2 on the iPhone. I noticed in the tutorials on the ab software site that all panels/screen are constantly on screen and sitting off to the side when not the current panel. While this have a performance hit to the iPhone even though they are not being moved around and rendered? I'm just trying to make sure I'm not wasting memory in my game by having object Not being used sitting off to the side of the screen, or will they cause no problems?
Answer by GuyTidhar · Jul 04, 2011 at 05:11 AM
When you use these solutions, you may gain a huge performance upgrade due to the dropping of draw calls ( if you have a lot of gui elements on screen simultaneously). You could never be sure of memory usage before you actually give it a try, unless you use abundance of large sized images. Optimizations and tweaking is mostly done once you have an application functioning as designed.
Thanks for the reply. I really was wondering if it was a smart thing to do. I don't want to find at the end it wasn't doesn't seem too easy to switch it to another method later If I have a large number of screens/panel in the game.
I once made this iphone demo, in which, once I noticed the performance impact, I replaced about half the gui to non spritemanager gui but kept the other half. I needed to switch relatively large images for animation yet I also head smaller images animating. It was all down to what I gained using a atlases and what they took in memory versus performance gains. Sometimes, you will have to change quite a lot for performance gains, but the more you learn what a tool gives you, the better you will be able to plan ahead.
Thanks guyt. Appreciate the reply. I built my entire iPhone game prototype with S$$anonymous$$1 and designed my own Gui$$anonymous$$anager which destroyed the screens when not needed. It didn't have any real problems but I saw a difference between playing it on my iphone and unity.
I started looking into EZGUI and thought it might make it run much better, but when I saw the tutorials for the Wizard and $$anonymous$$enu and having all screens off the side of the screen I thought it might be processing that could be used elsewhere. I'll have to have a play around with it all. $$anonymous$$ight also be my games code that slowing it down a little. Probably should use the profiler a bit more. Thanks again.