x


Procedural mesh update slow on iphone 4

Hello,

I'm using Prime31's UIToolkit to create the user interface and HUD of my iOS game. All was working fine until last week when suddenly I would get horrible lag bursts whenever I moved or updated an interface element, which you can see in this image, but only when running on the iPhone 4 or lower, on PC and the iPad 2 it's fine. (So, moving the joystick thumb, or updating a button with the "pressed" image for example will cause horrible stuttering.)

I've already tried rolling back my project to an earlier version yet the problem remains, so it must be caused by some change in Unity or iOS. I've tracked down the slowdown to updating the procedural mesh used for the UI. Even with only a few vertices the slow down still happens, and if I comment out the "mesh.vertices = tempVertices" assignment the slow down goes away (and the mesh isn't updated, of course), so my bottleneck isn't on the generation of the new vertex data, but on Unity's update. Anyone knows what's up? I've been banging my head on this for days now.

more ▼

asked Nov 14, 2011 at 09:17 PM

yuriks gravatar image

yuriks
1 1 2 2

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

1 answer: sort voted first

Just for reference, I found a workaround for what appears to be a Unity or GL driver bug: Procedural mesh update slow on iphone 4

more ▼

answered Nov 18, 2011 at 11:43 PM

yuriks gravatar image

yuriks
1 1 2 2

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

x2707
x2183
x1049
x56
x19

asked: Nov 14, 2011 at 09:17 PM

Seen: 1877 times

Last Updated: Nov 18, 2011 at 11:43 PM