Godot Version
v4.4.1.stable.official
Question
I am doing some practice making a 3d game but am experiencing some extreme lag when one of my enemies collides with a wall, any ideas on what could be the issue. I just used the simplified convex mesh when making their collision shapes. Is this the issue? Should i do a simple shape instead?
Let me know if anymore info is needed. I’m still new to a lot of this.
It could be your code blocking the main thread doing an expensive calculation. Maybe when a collision happens?
Use basic collision shapes where possible, your walls should use BoxShape3Ds, your player and enemy should use CapsuleShape3D shapes
1 Like
Gotcha yeah that seemed to do the trick, thank you. when should i be looking to use more advanced shapes if they cause such a performance hit?
Only use advanced shapes for non-moving static geometry, even then only when necessary.
Seemed like your enemy’s propeller caused the lag specifically, I’m guessing it had a complex collision shape that triggers a ton of calculations when using move_and_slide