godot-extended-libraries / hydro

Hydro is a Godot Engine module which allows rigid bodies to behave realistically in water.
MIT License
63 stars 16 forks source link

Avoid memory reallocations #6

Closed jonri closed 3 years ago

jonri commented 4 years ago

Based on the results of profiling the code, a very significant source of overhead is the ClippableMesh causing PoolVector reallocations. The memory access should be reworked with the following in mind: