How to improve performance with thousands diffirent meshes.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mooser

I have thousands of triangles, each of which looks different. Like a voronoi. Each triangle has a mesh and collision shape for raycasting. If I test the game, it is very slow. I think that Multimesh has one mesh for all instances but I need for each instance a different mesh. So how can I improve performance?

:bust_in_silhouette: Reply From: waffleawt

Lod, level of detail, you can use blender to make a less detailed versions of the meshes and make them switch to this less detailed ones within a certain distance, but I think you can do that using godot only, you can search about implementing lod for godot.

this is useful :

and this : GitHub - rico345100/godot-3-lod: LOD(Level of Detail) script for Godot 3.1.1