Random frame drops on start

Recently I posted a thread about bad performance:

It looked like no lag in the game anymore, but I encountered something weird. When I enter playmode, sometimes no lag, sometimes it is very laggy. That happens when I change something minor as you can see in the following video. I started the game 4 times. First, no lag. After I changed a collider position and it started to be very bad. At the third run I changed an orange position and lag again. After that I disabled and re-enabled an random object form hierarchy and no lag again:
stena6

I also have 26 errors in console, but I said that I’ll solve them later but I would like to know if they may be cause this “random” lag:

And another shord question:
What do you do when you feel demotivated with your project?

You are showing the logs as “Collapsed”. That’s not 27 but ~2.3 thousand logs. And yes, that will cause a lag.

Untoggle collapsed and Clear the console before you start and then see how the logs coming in correlates to the lag. Also, the Profiler should show how costly the debug logs are and wherever else there might still be room for improvement.

Thanks, now I have only 2 collapsed errors that I can’t solve but no lag anymore, thank you.