Hello,
Im just newbie into iOS development under unity and I’ve somehow managed to make my single level game, but I meet with really low performance (Very low FPS when looking at high definition textures or animation of emission of object with high definition textures) under iOS 11 with Unity 2017.2.0b9 and Xcode. I’ve removed all camera effects I was using to make sure I don’t use any effect that just uses all GPU power.
After first compilation I found out that I have to disable Metal API validation (Under Xcode Scheme Editor), because with it enabled I was getting error:
refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A9 GPU
Initialize engine version: 2017.2.0b9 (95ec3a4d5d9d)
validateRenderPassDescriptor:589: failed assertion `Texture at stencilAttachment has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)'
(lldb)
So from its name I assumed it is just a validation which doesn’t change performance of GPU and disabled it… Is there any setting I’m missing to get more GPU power out of iPhone ?
I was able to replicate the issue with API validation issue also on scenes with ARKit plugin from Unity. I’ve added screenshots where you can see all the screenshots of my settings, but I assume the issue with performance will be somewhere else in my settings.
Thank you very much for your help,
Vaclav
Player settings:
https://imgur.com/VZGuAoQ
Metal support disabled in console?
https://imgur.com/TpGLn8q
Xcode Scheme Editor throwing error
https://imgur.com/E3DxlfM
Xcode Scheme Editor working
https://imgur.com/BHX9bzr