Procedural Mesh Create Section Performance

Lag is generated from collisions, especially the UpdateCollision function, i had this problem too and this function is taking 90% of the time. What i did was splitting my mesh up in different sections and generate them over frames, this could help you to reduce the lag. I was making an openworld game, but instead of only generating surface, i was also drawing boundary triangles, like some box. Removing those boundaries improved frame time a lot.

1 Like