[SOLVED] SpriteKit performance drop when frame rate set to 60hz but NOT when 120hz on iPhone 13

Issue

I’ve updated my SpriteKit game to iOS 15 and, when testing on an iPhone 13 Pro, I’ve discovered frame rate has steadily dropped to around 55-56fps on this device:

Can't make 60fps

However, when I set preferredFramesPerSecond to 120 (and the respective Info.plist key to allow it), everything keeps up at 120fps, no problem:

120fps, no problem.

So, clearly my update logic is executing well within the allotted time to maintain 60fps. Also, there’s no issue maintaining 60fps on the simulator or my other test devices (iPhone 12 Pro, iPhone X, 1st gen. iPhone SE).

This one has me scratching my head. Has anyone experienced this?

Thanks!

Edit #1: Interestingly, I can reproduce the same behavior on my build just by limiting the frame rate in iOS’ Accessibility settings:

Frame rate limit setting

Solution

This is no longer an issue for me. It looks like one of the Xcode or iOS updates took care of it. Not sure which.

Answered By – Manny

Answer Checked By – Candace Johnson (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *