🛈 Announcement
Greetings! Far Cry forums are now archived and accessible in read-only mode, please go to the new platform to discuss the game.
  1. #1
    apapoutsas's Avatar Member
    Join Date
    Dec 2012
    Location
    FC5 PC
    Posts
    341

    Navmeshes take ages to build

    So I am working on a vertical level and as soon as I change one small thing, I get around 14-60 nav meshes building and each take around 2 seconds to build (with a beast PC). What is worse is that when I press play it starts building nav meshes again (around 14). Even if I save with Ctrl+S it builds 5 nav meshes, I mean seriously?

    I cant playtest my level without waiting for at least a minute.

    Anybody had this before? Is there any way to reduce the nav mesh building?
    Share this post

  2. #2
    Steve64b's Avatar Senior Member
    Join Date
    Jul 2016
    Location
    http://steve.farcry.eu/
    Posts
    1,628
    Navmesh building and performance seems to have decreased compared to the FC4 days. For example, moving objects doesn't instantly affect the navmesh in realtime anymore:
    You need to deselect the item before the navmesh will be recalculated.

    And also, even when the navmesh has been built, that state causes slow (mouse position display update) performance in the editor:


    I haven't tested this in Title Update 5 yet, but non-snappy interface and controls rather discourage using the editor for me...
    Share this post

  3. #3
    apapoutsas's Avatar Member
    Join Date
    Dec 2012
    Location
    FC5 PC
    Posts
    341
    It has gotten worse for me. Even selecting a single object, not moving it, then deselecting it will start building around 100 nav meshes. I am pretty sure I ve stumbled into a bug.

    I ll record some footage when it stops building so I can showcase :3

    EDIT: Okay, here it is:



    EDIT2: I noticed that the mouse update doesnt happen when you load the editor, even while building the entire nav mesh at start the mouse updates very fast. So this happens later? My understanding is very basic, but this looks like a memory leak of sorts. Dunno, it's making my life difficult as I have to wait a lot to playtest and since I am making a parkour map this is huge.
    Share this post

  4. #4
    apapoutsas's Avatar Member
    Join Date
    Dec 2012
    Location
    FC5 PC
    Posts
    341
    I counted how long it takes to build my level "Last Day on Earth" on editor startup (nav mesh building).

    Wait for it, wait for it. 25 mins! Yep, and if you press to play/explore, it ll build for another minute before playing (bear in mind that my PC is a beast).
    Share this post

  5. #5
    Apapoutsas, do you have AI on the map?

    I experienced this issue as well when building a single player map. At one point I decided to redo the AI waves, and after deleting them all and re-adding them the issue was gone. Not sure if that's a fix or a fluke, but I figured I'd mention it.
    Share this post

  6. #6
    apapoutsas's Avatar Member
    Join Date
    Dec 2012
    Location
    FC5 PC
    Posts
    341
    Originally Posted by Mutant1408 Go to original post
    Apapoutsas, do you have AI on the map?

    I experienced this issue as well when building a single player map. At one point I decided to redo the AI waves, and after deleting them all and re-adding them the issue was gone. Not sure if that's a fix or a fluke, but I figured I'd mention it.
    It's not the AI (I have 1 enemy and in the video above there was no AI in the map), but placing a lot of objects in different heights causes it. In other areas where there was only one floor of stuff, the nav meshes would build very fast. But in the starting area it takes ages to do anything as there are around 7+ floors of stuff. Thanks for mentioning it though.
    Share this post