1.5 affecting GUIManager?

Hello!

I incorporated GUIManager into a level of my game just to try it out. Since installing 1.5 I’ve noticed that the level with GUIManager (no OnGUI) dropped its frame rate by about 15fps, while those that used OnGUI greatly improved. Would 1.5 be doing anything that would affect GUIManager?

Thanks for your help!

With regards to OnGUI, it should be faster in 1.5 due to optimizations in mono, but you should still avoid it for in-game GUI (menus are ok).

As for GUIManager, I haven’t heard anything specific, but you might ask besuser or post to the GUIManager thread: http://forum.unity3d.com/viewtopic.php?t=23557

I haven’t upgraded to the new version yet, but do you have a simple project that I could use to profile the issue? I’m sure the GUIManager will need to be revisited with all the new and great additions to Unity.

To be honest, I’ve only just started integrating it and don’t really know enough about GUIManager to know what I’m doing. I’m wondering what people using GUIManager extensively are experiencing after the upgrade?

Change the SetupCameras() method(on your GUICameras.cs) by this one to avoid warnings in the editor:

private void SetupCameras ()
	{
		//Setup iphone settings
        //iPhoneSettings.verticalOrientation = mVerticalOrientation;//Old Unity iPhone version 1.0.3
        //New Unity iPhone version 1.5.0
        if(mVerticalOrientation)
		{iPhoneSettings.screenOrientation = iPhoneScreenOrientation.Landscape;}
		else
		{iPhoneSettings.screenOrientation = iPhoneScreenOrientation.Portrait;}
        
		//Setup GUI cameras
		foreach (Transform tmpCamera in gameObject.transform)
		{
			//Set orthographic size
			if ( mVerticalOrientation )
			{
				tmpCamera.camera.orthographicSize = 240f;
			}
			else
			{
				tmpCamera.camera.orthographicSize = 160f;
			}
		}
	}