x


GUITexture and GUIText on android

I'm using Unity3d to develope an android game. In the game I have a shop which will use a lot of GUI elements.

now when I show about 10 GUITexture(icon of the goods) and 10 GUIText(price of the goods), I get 30FPS on the android device.

when i add another 10 GUIText(name of the goods),It goes to 15FPS.

I did't use the UnityGUI which will call the OnGUI function, it's more slower.

any idea to solve this problem? thanks.

more ▼

asked Apr 12 '12 at 07:44 AM

sunstar gravatar image

sunstar
0 2 2 2

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

2 answers: sort voted first

Even if you don't use OnGUI, you'll still get 1 draw call per GUITexture (check stats on the game window). Depending on the device, too many draw calls can kill your framerate. The only solution to this is using a GUI manager such as NGUI, EZGUI, or a bunch of others. I recently had a similar problem, and after some asking and reading around, it seems NGUI is currently the favoured option (good price/ease of use/functionality ratio).

more ▼

answered Apr 12 '12 at 08:21 AM

gregzo gravatar image

gregzo
1.6k 31 40 51

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

I've used EZ GUI on a few commercial projects, so I'd like to give that a +1. It did take a little while to get my head round it though!

Have a read through this forum, there's frequent discussions about the various GUI managers :) http://forum.unity3d.com/forums/25-UnityGUI

more ▼

answered Apr 12 '12 at 09:28 AM

yezzer gravatar image

yezzer
126 3

(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:

x3669
x2451
x476
x313
x154

asked: Apr 12 '12 at 07:44 AM

Seen: 999 times

Last Updated: Apr 12 '12 at 09:28 AM