Hello Guest

Author Topic: iOS 6 and Xcode 4.5 performance problems?  (Read 19548 times)

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
iOS 6 and Xcode 4.5 performance problems?
« on: September 20, 2012, 05:53:19 am »
I asked this on the Unity forums, but wanted to check in here too - maybe has something to do with 2dTK.

I just updated to iOS 6 and Xcode 4.5. Everything seems fine and dandy, except now my build runs horrrrribly slow on the iPhone. It was perfectly fine prior to making these updates and I've changed nothing since. I am using Unity 4, testing on an iPhone 4. Anyone else experiencing performance decreases after updating to either/both of these? Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #1 on: September 20, 2012, 08:15:18 am »
This is likely an issue with Unity - I've tested on iOS6, but never bothered trying the XCode 4.5 betas. Have you tested angrybots or some other unity sample?
Were you using armv6 mode?
Have you attached the profiler, or enabled the iOS profiler in the xcode proejct to see whats going on?

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #2 on: September 20, 2012, 02:14:54 pm »
Thanks for the reply. I haven't yet tried any of the demo projects, good idea, will try it when I get back home tonight. I've always been using arm7 only. When I enabled the internal iOS profiler in xcode, it seemed to be struggling on cpu, but mainly gpu time. My FPS used to be near 60, now it is around 30.

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #3 on: September 21, 2012, 01:15:07 am »
After enabling the internal profiler:

Code: [Select]
cpu-player>    min:  3.6   max: 28.3   avg:  7.2
cpu-ogles-drv> min:  1.1   max: 11.2   avg:  1.9
cpu-present>   min:  5.3   max: 30.1   avg: 17.0
cpu-waits-gpu> min:  1.4   max: 28.2   avg: 14.2
 msaa-resolve> min:  0.0   max:  0.0   avg:  0.0
frametime>     min: 13.2   max: 45.4   avg: 26.1
draw-call #>   min:  16    max:  16    avg:  16     | batched:    10
tris #>        min:  2864  max:  2864  avg:  2864   | batched:   424
verts #>       min:  8080  max:  8080  avg:  8080   | batched:  1180
player-detail> physx:  0.9 animation:  0.0 culling  0.0 skinning:  0.0 batching:  1.0 render: -11.8 fixed-update-count: 0 .. 2
mono-scripts>  update:  2.0   fixedUpdate:  0.0 coroutines:  0.3
mono-memory>   used heap: 1290240 allocated heap: 1417216  max number of collections: 0 collection total duration:  0.0

Not sure what's going on here. I was at an average frametime of 16-17 prior to updating Xcode and my iOS. Didn't change anything with the game code or any assets.  :o

EDIT: I'm also noticing that all my textures look anti-aliased..everything looks very slightly blurry now. Point sampling is on and all of those settings are correct (I haven't changed a thing).
« Last Edit: September 21, 2012, 02:30:58 am by fsadeq »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #4 on: September 21, 2012, 08:22:05 am »
I'll give this a go when I get a chance, probably sometime this weekend

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #5 on: September 22, 2012, 03:39:09 am »
I have an update to this problem, easier to just link to my post on the Unity forums: http://forum.unity3d.com/threads/151830-iOS-6-and-Xcode-4.5-performance-problems?p=1042256&viewfull=1#post1042256

So upgrading my device to iOS 6 has nothing to do with it, it is entirely because of Xcode 4.5!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #6 on: September 22, 2012, 09:30:44 am »
Interesting. I'll follow that Unity thread to see where it goes.

vambier

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #7 on: October 08, 2012, 01:49:27 pm »
Any update on this one?

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #8 on: October 08, 2012, 03:35:04 pm »
Yup, heard from Unity this morning, stating that they were able to reproduce using the Xcode project I sent them. They then followed back just now saying that they think it has been fixed in Unity 4 public beta 11 and that it will be released soon. To clarify a few things, they were unable to reproduce when I just sent them the Unity project, but when I sent them my own Xcode project built by my version of Unity 4, they were able to reproduce.

vambier, are you having the same problem? If so, what version fo Unity are you using?

vambier

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #9 on: October 08, 2012, 08:52:02 pm »
It looks like I'm having the same problem. I just started using unity last week so I didn't try it on ios 5.1 but it looks like the animations in my scene are really slow, and there's not that much going on in the scene either. But it runs smooth on my pc and imac. So I want to show the fps to see how it performs, but I'm looking for a way to show the fps in the first place:-)

vambier

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #10 on: October 10, 2012, 10:24:36 am »
Got an idea how to show the fps in unity?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile

vambier

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #12 on: October 10, 2012, 09:15:02 pm »
I get a solid 30 fps on my ipad 2
On my windows pc I get +/- 240 fps
On my imac I get +/- 140 fps

I assume my ipad isn't that slow that it can only render 30 fps for my really really simple scene....

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile

vambier

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: iOS 6 and Xcode 4.5 performance problems?
« Reply #14 on: October 10, 2012, 10:48:05 pm »
Thanks, that was the solution!