I’m creating a game mostly based on 2D physics for android and i’m having a strange issue.
I’m testing my game on a galaxy a5, so I was kind of expecting slow performance. When I loaded the game onto my device it didn’t run quite as smooth as I hoped it would, so naturally I made a development build to see what the profiler was saying. To my surprise the game all of a sudden started to run perfectly. No stutters, fps around 100. Afterwards I made another normal build and yet again, lag. To make things even worse, the development build only runs smoothly when I’m actively using the profiler. If I unplug my device and run the developer build, it runs poorly again. Has anyone ever had a similar experience? I found this but It was from a while back and there wasn’t really a solution.
My thought are that my project settings aren’t optimal. I’m fairly new to unity development so I’m not really sure what to change. Does anyone know why I see such a big difference in performance when switching to development build?
Also midway through this project I started using the 2D renderer with the lwrp. just recently I switched back to the default because the visuals weren’t worth the performance drop for my game. Maybe switching back and forth between render modes messed something up in my project?
I would just like to see what you guys think about my situation.