- Edited
The lag doesnt seem like a performance issue. Since it lags the same or even less when playing the game on mobile.
The tiny lag spikes usually occur in the beginning of the level. But as i respawn a few times and play it over and over it more or less disappear.
I think it got better after i used only PNG instead of a webp image files. But still persist a bit.
Nothing in my script loads files on the fly. And the lag can occur even in a simple scene without any blocks. Just a simple ball falling.
How can i solve this odd tiny lag? Its really hard to figure out whats going on. - Im at the point of considering to recreate the game bit by bit untill i figure it out.
edit: even tho my textures are small and compressed. i suspect it could be related to textures.