We are trying to find out how to fix following problem:
The game has following code for the screen orientation:
function Awake()
{
iPhoneSettings.screenOrientation = iPhoneScreenOrientation.LandscapeLeft;
DontDestroyOnLoad(this);
}
When I move the iPhone or iPod Touch from the landscape to portrait It does seem to shake a little and we can see some frame trying to rotate and it’s coming back - not the whole screen, but something like a black frame behind the screen and we notice the black corners of it for half of the second
It does the same during whole program - doesn’t matter if it’s menu or the game itself. Always happens when tries to rotate the device.
Anyone experienced that or know how to fix it? We doesn’t want to rotate the screen at all.
The only time I can get the black corners to show is to change the volume so the volume icon shows and immediately rotate the device - I see the corners but it is only as it rotates the volume icon overlay itself.
I’m using 1.5 on a 3gs running 3.0, built against 2.1 using the 3.0 SDK.
This caused my flickering issue to go away as well. But more importantly it seems to have fixed a major performance issue that was driving me crazy.
My frametimes were spiking 15 ms when the device was tilted, causing a hitch in my game. It started with the 1.5 update, and no matter what I did it wouldn’t go away. After putting this code in the game, the frametime spikes are no more, and my game plays much more smoothly.