Hello everyone I am developing 2D Platformer android game after done with some of levels I tried it on my android it lagging very much but if I test it in editor without selecting game object it works fine but if I tried it in editor with selecting game object the game is lagging same as it in android.
I have already tried Optimization technique like Raycast, maskable in UI, Compress, Mipmaps in Sprites, Some audio Settings and in quality settings I also tried changing Rigidbody settings like Discrete collision Detection, and little bit with colliders but nothing works. I also tried profiler but didn’t help me in this situation. I am also attaching the video link that help you understand the problem video Link :-
. Can anyone please help me with this problem?
Unity Version : 2020.3.29f1
Why wouldn’t the profiler help you? It tells you what is taking the time. From the looks of all that green, it would suggest Rendering.
TBH I don’t see how you can optimize without a profiler unless you’re just guessing.
1 Like
Thanks for your reply but all the green part is because of “Other” not because of “Rendering” and if it is then can you please tell the way to fix it.
Well I cannot see the whole profiler so couldn’t colour match it but it’s kind of irrelevant.
How would I possibly know how to fix it when I don’t know what’s wrong and obviously don’t have the project in front of me? 
The answer is, of course, use the profiler to see what’s taking time. Do you know how to use it? Have you clicked on the CPU area and looked at all the detail it provides in the hierarchy showing you exactly what it’s doing?
Lots of videos around showing you how, here’s the first one that came up on Unity Learn.