iOS enable GPU acceleration ?

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:
Imgur
https://imgur.com/VZGuAoQ

Metal support disabled in console?
https://imgur.com/TpGLn8q

Xcode Scheme Editor throwing error
https://imgur.com/E3DxlfM
Imgur

Xcode Scheme Editor working
https://imgur.com/BHX9bzr

1 Like

Most likely you’re using some heavy shaders for the rendering. This whole thing would not be possible without “GPU acceleration”. Unity renders everything on GPU, it doesn’t even have any CPU rendering capabilities.
Can you post your scene screenshots and screenshots of used materials (material parameters)?

There are mostly used assets on walls such as here :
https://imgur.com/a/xbZmS … (All materials used are same except skybox and planets explained below)
it consists of the albedo, color and emission maps under standart shader, there are quite many of objects using material with maps similar to this one, basically whole walls, stones pillars in the scene seen in the first scene image… We also use AGS Animated Galaxy Skybox ( https://www.assetstore.unity3d.com/en/#!/content/69957 ) which could cause problems and below Skybox on plane are planets from this asset: ( https://www.assetstore.unity3d.com/en/#!/content/61668 ) which are not seen on scene, since they show up later in game… But I assume theese shouldnt be the cause of problem, I can see that if I look on Skybox the FPS goes down, but still just watching walls in game are getting me to lower FPS and quite heat up the phone…
Thank you for your help,
Vaclav

If it’s just one material on everything, try setting it’s shader to Unlit - Texture and try to disable the skybox completely, and see how fast it starts to render (no matter how ugly it can become)
And post the results here