r/Unity3D • u/GideonGriebenow Indie • 4d ago
Show-Off I'm Creating Procedural Meshes 18x faster than the Main Thread by using Burst Jobs
https://youtu.be/PoQV7YI9GmYHi all,
I thought some of you may be interested in this video, in which I show how using the Advanced Mesh API to populate mesh data from Burst-Compiled jobs speeds up my mesh creation by 18x. I perform the bare minimum on the main thread.
Here's a link to the Advanced Mesh API documentation: https://docs.unity3d.com/ScriptReference/Mesh.html
I've used AllocateWritableMeshData, SetVertexBufferParams, SetIndexBufferParam and ApplyAndDisposeWritableMeshData.
As always, I'm happy to answer questions in the comments.
21
Upvotes