0 votes

Hi. Using Godot 4's built-in LOD system to optimize chunked terrain. The chunks are imported meshes (ArrayMesh).
When I generate collisions for these chunks via create_trimesh_shape()those collisions are unaffected by LOD - they're full resolution at all times which is impacting performance.
Loading and discarding chunk collisions based in player proximity is not really an option as I need the entire terrain to have collisions at all times for other reasons. Also, collision shapes should be accurate (ie, same LOD as the terrain, otherwise I'd be walking through terrain etc...)

Question: Is there a way to optimize collision shapes? Maybe if I generate them with code I can enable some sort of LOD for the collision shapes?

Godot version 4.0
in Engine by (506 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.