Using dynamic Navmesh on WP world

This is not the expected behavior. With a World Partitioned Dynamic navmesh, the prebuilt base navmesh streams in with the cells, and dirtiness from loading those objects is ignored. There are things that can cause dirtiness while loading though such as a data layer that contains lots of meshes that impact navmesh that is not included in the base navmesh data layers. Data layers themselves are still very rough and limited support.

The most likely cause is ARecastNavMesh::OnStreamingNavDataAdded. When a nav data chunk streams in, it re-dirties every navigation element already in the octree inside the chunk bounds that was not loaded with a cell. That includes always loaded actors. The dirty area uses the element’s full bounds, not the chunk bounds, so one large always loaded element queues the whole map each time a chunk attaches. Another licensee hit the same thing with a LandscapeHeightfieldCollisionComponent: https://forums.unrealengine.com/t/2705859

You can confirm it with LogNavigationDirtyArea at VeryVerbose. These show up as “Adding dirty area object: From: Streaming data added” with the offending object named. The fix they used was a child of ARecastNavMesh that overrides OnStreamingNavDataAdded (it is virtual) and skips classes they know never move. Not ideal, but it avoids an engine change. Otherwise, make that actor spatially loaded or stop it affecting navigation.

If the log instead shows a “Recreating dtNavMesh instance” warning about serialized maxTiles, the saved navmesh is being discarded. The partitioned builder ignores Fixed Tile Pool Size, so the saved pool can differ from your Tile Pool Size. Set Tile Pool Size to a value that needs the same number of bits as the serialized value in the warning. You can also send me some logs to check what may be causing this change. I would need the navigation and navigation dirty area categories set to very verbose.

-James

[Attachment Removed]