I finally found the cause of the problem. One of my houses had too many collisions and it’s very close to the player, which would have made collision detection much more expensive, so it took 0.3ms.
And now, I removed all collisions and got 110+ FPS
1 Like