arthurmco / familyline-testbed

nice and fun RTS game about the adventures of family in the ancient era. Homebrew engine. Just starting. Shitty graphics are expected
MIT License
6 stars 2 forks source link

Pathfinder hangs inside a loop #13

Closed arthurmco closed 3 years ago

arthurmco commented 6 years ago

Pathfinder seems to hang randomly on certain ocasions, inside a very time consuming loop inside the PathFinder.cpp file, starting at line 183. Here is the loop

This causes the game to freeze

It do not seem to be related with position, object, terrain height of the origin or destiny

It also seem to be more common in Windows, but also happens in Linux as well, though more rarely.

arthurmco commented 6 years ago

This seems to be happening a little bit less, after the logic engine rewrite.

Maybe they were related to timing/memory issues?

arthurmco commented 5 years ago

They might be happening due to floating point things.

I fixed a deadlock problem in the pathfinder (155f535) that had floating point issues as the cause.

arthurmco commented 4 years ago

It stopped doing that for now.

Closing if this does not happen anymore