Unity 1.7 -> Unity 3.1 Shaders

We are noticing a large frame drop 40 fps fixed still to 5-18 fps jerkiness of the U3.1 built version on iPod4G and iPad. How Could be ? :roll_eyes:

Same scenes, same code, everything is running without errors in the editor but…
I’m trying to figure out if this is caused by the older shaders in the project folder (Older iPhone Standard Assets + some custome one).

If I create a new project in Unity3 for the iPhone, the shaders are all named differently.
Is it possible that older iPhone shaders (mostly Diffuse and Vertex Lit) are making going so down the performances ? For a middle complex scene ?

Should I delete the older shaders or subst them with the new ones ? :face_with_spiral_eyes:

Anybody who did already a porting of a 3D title from U1.7 → U3.1 has ever experienced something like this ?

The worse is when the scene is done by simple camera animation going on, 40 fps fixed with even a larger FOV of camera(more triangles are in sight) compiled with Unity1.7 Basic, and 10-15 fps with narrower FOV if compiled with Unity3.1 Basic

Does the version of OGL ES I choose in the player setting (1.1 vs 2.0) that makes this difference ?

Thank you in advance.

Yes switching between ES 1.1 and 2.0 actually makes this kind of massive differences especially when you don’t use optimized shaders. The desktop ones are a total overkill (the same up to a given degree holds for touching surface shaders)

also switching to ES 2.0 has as consequences that Lights that are set to auto will actually act as pixel lights which has a significant impact performance

Gosh! :slight_smile: while you were answering me, I was testing the same build with:

#define USE_OPENGLES20_IF_AVAILABLE 0

And all the rendering and framerate issues are gone! :smile:
Sorry for the rant :stuck_out_tongue:

This was my bad. Wanna try the new ES 2.0 expecting no such changes :stuck_out_tongue:

Now only the FMOD audio issue and the Physics behavior seem to be the last big issues before to porting and submitting the U3.1 version of the game.