Author Topic: Android auto-rotation really slow and doesn't draw but audio keeps playing  (Read 8278 times)

UncleAcid

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
Hi,

I know this is a Unity issue, but I'm hoping someone here has had to deal with this as well (and my game is entirely NGUI, so it's not completely out of this forums scope). I've posted on Unity Answers as well, but it usually takes too long to get any real answers from them.

I've got a problem with auto-rotation on Android; when playing my game if I rotate the screen the graphics stop updating but my audio continues for a few seconds and then the screen rotates and the graphics start updating again.

I was hoping I'd be able to capture a message that tells unity to get ready to rotate so I could completely pause my game, then resume once it's done, but I haven't found such a message. Either that or preferably remove this ridiculous delay/stopped drawing, but from my research it doesn't seem like I have any control over that.

Anyone have any ideas on how to deal with this issue ?

Thanks.
« Last Edit: April 08, 2014, 02:37:24 PM by UncleAcid »

Agent_007

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 5
  • Posts: 27
    • View Profile

UncleAcid

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
I've tried using that method and I can only get "notified" when the orientation changes, but not when the animation/screen actually rotates. It's at the point when the Screen.orientation changes that the issue arises.

So all I've been able to do so far is pause the game when you rotate, but I can't resume it automatically after the screen actually decides to rotate.