Semaphore.WaitForSignal is causing so much lag on Android!!! Help!!!

Hi,

I have made a small and relatively simple 3D game that I want to upload to Google Play. I built the .apk to my phone for testing and in the beginning it went well. Playing went smoothly (60 fps) but after a couple of minutes I started getting about 35 fps. I noticed about 5 - 10 small spikes, then after a scene reload in the game, I was stuck at about 35 fps.

I did some investigating in the profiler and found that Semaphore.WaitForSignal seemed to be causing the issue.

Please help me!!! Comment if you would like some images to clarify the issue!

I solved it

I changed my fixed timestep from 0.5 to 0.013333 which eliminated the lag

Hi, I also ran into the same! I tried to switch to the default render pipeline and it worked for me!,hi, I have also the similar problem where I used URP. I tried static batching and dynamic batching but Semaphore.WaitForSignal is taking 43ms. so i decided to switch to the default render pipeline and god damn it worked for me! now my game is running 60 fps. so just try to switch to the default render pipeline in case if u use URP!