When I instance 200 rigid bodies in my game not colliding with each other as items the game fps drops to single digits, but the physics process stays at the same rate. I think there is a error I made because it should not have that kind of performance. How can I fix this?
rigidBody2d(The rigidbody's do not collide with each other due to layer settings)
-Sprite
-Collisionshape2d
I removed the Area2d with the collisionshape2d which made it able to go up to 500 rigidbodies before the fps drops down to single digits. It has something to do with the collisionshape2d in the rigidbody2d because if I disable the collisionshape2d there is no lag at all. If I reset the layers I could go up to 600 rigidbodies before lag.