Zylann / godot_heightmap_plugin

HeightMap terrain for Godot implemented in GDScript
Other
1.74k stars 160 forks source link

Any way to turn off LOD? #430

Open JasonTable opened 6 months ago

JasonTable commented 6 months ago

I know the LOD is one of the main appeals to this plugin but I suspect for my use case, it might be making the performance worse. I might be losing more frames to the quadtree processing than I gain from rendering less polygons. My game doesn't have a super huge world so I don't think I need LOD. But I like the other features the plugin provides so I wanna keep using the plugin.

So I want to know if there is a way to turn it off and if not, maybe that should be an option and this could be considered a feature request.

Thanks!

Zylann commented 6 months ago

You can increase chunk size, or even modify the plugin to go beyond what it was tuned for, but otherwise you can't turn LOD off. For LOD-less terrain it should be moderately easy to write your own system using large chunks, or no chunks at all, maybe re-using some code and shaders from the plugin. You could also try another plugin that uses a lighter technique, as HTerrain's lod approach is relatively old.