Lag Only on iOS

,

Hi,

I am experiencing lag only on iOS. (Tested on Android, macOS, PC). I have no clue how to figure this out or where to even start. Is this a bug that needs reporting or is it something I am doing wrong?

The issue happens on 2022.1 and 2023.2.0b7.

It seems to happen randomly, and only once in the lifetime of the app being loaded. Sometimes it won’t even happen when you load the app.

The only consistent way to get it to happen is to delete the app and reinstall it. Then it happens every time in the same areas.

Here is the profiler. These are two different instances in two different scenes.

For anyone looking for the answer, here is the solution: Shader.CreateGPUProgram Semaphore.WaitForSignal causing lag on iPhone

Prewarm your shaders: Unity - Manual: Shader variant collections