So I've been noticing a bit of a performance hiccup when clicking around the scene to move my 2d character and while I thought it was a one off, I started noticing it's actually happening all the time (in the deployed game too).
Luckily I have managed to identify the exact conditions when it happens and it's basically whenever the navigation path is not a direct line.
If there's a straight line that connects where your character is and where you've clicked, this stutter won't happen.
If however the path is composed of 2 or more edges then you get a very noticeable stutter (~0.5second) during the pathfinding.
Has anyone else experienced this, is it a known issue and are there any workarounds?
FYI I am using what I believe is the standard 2d workflow at the moment (so basically, Unity sprites, XY plane and 2d polygon collider for my navmesh)
Thanks!
Comments