A* Pathfinding Project

60 second freeze on stopping play mode in editor


#1


#2

Which version are you using?
And how large is the freeze when you are not using deep profiling?


#3

You respond very quickly.
4.2.8

13 seconds.

It was creating a grid graph larger than I intended, so I’ll fix that. However, with OnApplicationQuit you could skip the destructor calls.


#4

I’d rather not. Some games may depend in some odd ways on the graphs being destroyed properly.
Or it may lead to memory leaks if the user cancels the quit request (which I’ve heard is possible in some cases).


#5

What do you think about a Debug.LogWarning() if the grid graph is some insane size?


#6

There is already an artificial limit of 1024*1024 nodes. Some games use graphs that large though.


#7

OK thanks for the quick answers.