Camera Texture Scale carries across Unity scenes
I believe I've isolated a performance problem that dogged me for a few days. Turns out it's not a matter of performance, but rather unexpected behavior in the Oculus Unity integration (applies to both 0.4.1 and 0.4.2 as far as I can tell).
I'm finding that if you have a program that consists of multiple Unity scenes (and one loads the other via LoadLevelAsync, for example), it appears that only the Camera Texture Scale value of the OVRCameraController in the first scene is used for the entire program, ignoring whatever is set on the OVRCameraControllers in the other scene(s). FYI, I'm not using DontDestroyOnLoad anywhere.
So, I had Camera Texture Scale set to 1.0 in my loading scene, which then overrode my Camera Texture Scale of 1.5 in the main scene, which shows up as a big FPS boost, but reduced visual quality that I actually didn't really notice until I compared side by side. Only later when I set my loading scene's Camera Texture Scale to 1.5, did I start to see the FPS sink and the visual quality get better. So, the upside is, wow my program looks even better! The downside is, I have 100 less FPS than I thought I did.
After some further thought, I have only seen this happen in Unity 4.5.3f3 and 4.5.4, but it may not have occurred in 4.5.2, and would explain the mysterious performance increase I saw simply moving my project from 4.5.2 to 4.5.3f3.
I'm finding that if you have a program that consists of multiple Unity scenes (and one loads the other via LoadLevelAsync, for example), it appears that only the Camera Texture Scale value of the OVRCameraController in the first scene is used for the entire program, ignoring whatever is set on the OVRCameraControllers in the other scene(s). FYI, I'm not using DontDestroyOnLoad anywhere.
So, I had Camera Texture Scale set to 1.0 in my loading scene, which then overrode my Camera Texture Scale of 1.5 in the main scene, which shows up as a big FPS boost, but reduced visual quality that I actually didn't really notice until I compared side by side. Only later when I set my loading scene's Camera Texture Scale to 1.5, did I start to see the FPS sink and the visual quality get better. So, the upside is, wow my program looks even better! The downside is, I have 100 less FPS than I thought I did.
After some further thought, I have only seen this happen in Unity 4.5.3f3 and 4.5.4, but it may not have occurred in 4.5.2, and would explain the mysterious performance increase I saw simply moving my project from 4.5.2 to 4.5.3f3.
