GridGraph node limit

Is there a limit to number of nodes a grid graph can have?

I seem unable to input dimensions which would cause the graph to go over 1mln nodes.

Hi

There is an artificial limit enforced to limit the width and depth of the graph to at most 1000. You can remove it (it’s in GridGenerator.cs, the CalculateTransform method I believe). However be aware that 1 million nodes is a lot of nodes. You will start to run into memory issues and performance issues, especially on lower speced hardware. Perhaps you could consider another graph type (for example a recast graph) which handles large worlds much more efficiently?

Thanks Aron for the replay.

Yeah anyway I’m leaning towards using racast graph in the end as well, I’m just familiarizing myself with the tool.