I am using Unity 2019.3.9f1 with Universal Render Pipeline (URP) to make a 3D android game.
It runs fine in the Editor and in Nox Player Emulator but when I try to run it on my phone, the fps drops by a lot and is unplayable.
I have a lot of objects in my scene which are generated randomly (for which I am using Object Pooling)
I am also using a Vertex Displacement shader which I made in Shader Graph to bend the path (similar to Subway Surfers)
I have Ambient lighting with just one Directional light.
My only camera’s clipping range is set from 0.01 to 200.
I am not using any textures for my materials.
I don’t have any audio yet.
I also have a script that changes the color of 2 materials at certain intervals
Here’s everything I have already tried :
Set Application.targetFrameRate = 60
Set QualitySettings.vSyncCount = 0
Removing the Bend shader
Changed all particles’ materials’ shaders to Mobile shaders
Tried disabling Post-Processing effects
Disabling the Color Changer script
Using the profiler to optimize scripts
I think the problem is something with the build settings, player settings or graphics settings.