[SOLVED]Navmesh generation speed

Someone can help you.

[SOLVED]Navmesh generation speed

PostPosted by slapin » 28 Dec 2016, 21:35

Hi, all!

How to speed-up navmesh generation over terrain?
For me it takes minutes, which sucks :(
Last edited by slapin on 29 Dec 2016, 10:46, edited 1 time in total.
User avatar
slapin
Some active
Some active
 
Posts: 63
Joined: 15 Sep 2016, 20:15

Re: Navmesh generation speed

PostPosted by Victor » 28 Dec 2016, 22:03

How are you generating the NavMesh (dynamically at runtime or statically)? If your terrain will remain static, you may want to seek a way to store the mesh data in a file so you can quickly load it back up. Perhaps GetNavigationDataAttr/SetNavigationDataAttr would allow you to load the vertex data. I'm new to NavMesh, so this advice my be incorrect, but that's how I would initially approach the problem.

If you're creating a procedural world however, you may have to be more clever. Splitting the world into parts/chunks might be best; then generate the navmesh for each part dynamically in a background thread.
User avatar
Victor
Have some posts
Have some posts
 
Posts: 48
Joined: 11 May 2016, 14:22

Re: Navmesh generation speed

PostPosted by Mike » 29 Dec 2016, 08:04

Try to tweak cell size (0.8 should be enough, default is 0.3). The higher the cell size, the lower the granularity and build time.
Increase cell size as long as navMesh granularity (accuracy) is acceptable.
User avatar
Mike
Moderator
Moderator
 
Posts: 353
Joined: 16 Jan 2014, 20:35
Location: France

Re: Navmesh generation speed

PostPosted by slapin » 29 Dec 2016, 10:17

Thanks a lot! Now navmesh build is very quick with increased cellSize!
User avatar
slapin
Some active
Some active
 
Posts: 63
Joined: 15 Sep 2016, 20:15


Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests