I am simply adding a sprite to a scene in SpriteKit. Whenever my app is launched, i get the following error:
2015-09-19 15:39:02.318 *MY APP NAME HERE* [2569:811044] <CAMetalLayer: 0x157819ce0>: calling -display has no effect.
This causes some of my sprites to not render, but it seems to be random which ones it affects every time the scene is opened. It is only taking effect on one of the scenes in my game. I am using Xcode 7 and building on iOS 9. This did not happen on Xcode 6 when building for iOS 8. Please help, thanks.
Hey Zebon,
Your problem is probably related to zPositioning.
The behaviour has changed from IOS 9.
Previously, even if you had View.ignoresSiblingOrder = true in your viewController, sprites with the same zPosition would still render in the same order that you added them to the stack - that is the last sprite added had the highest viewing priority.
The documentation has always said that if you switch this flag on, then all sprites with the same zPosition MAY appear in random order.
Now (as of IOS 9) it seems all sprites with the same zPosition WILL appear in random order.
It's a pretty big change of behaviour for a sprite based game engine.
Please Apple, can you communicate these things.