x


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?

more ▼

asked Jul 04 '11 at 04:58 AM

.hooligan gravatar image

.hooligan
257 46 49 57

(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

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.

more ▼

answered Jul 04 '11 at 05:11 AM

GuyTidhar gravatar image

GuyTidhar
2.2k 4 8 13

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.

Jul 04 '11 at 05:41 AM .hooligan

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.

Jul 04 '11 at 06:24 AM GuyTidhar

Thanks guyt. Appreciate the reply. I built my entire iPhone game prototype with SM1 and designed my own GuiManager 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 Menu 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. Might also be my games code that slowing it down a little. Probably should use the profiler a bit more. Thanks again.

Jul 04 '11 at 06:50 AM .hooligan
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x53
x51

asked: Jul 04 '11 at 04:58 AM

Seen: 1360 times

Last Updated: Jul 04 '11 at 06:50 AM