Hi @Panuchka
I’ve open a PR with a new build of Recastjs Update Recast.js by CedricGuillemet · Pull Request #16072 · BabylonJS/Babylon.js · GitHub
It only use dynamic memory allocation so you should see a difference. Please test it and I’ll release a new NPM package if it works for you.