Describe the bug
Moving tokens long distances (200+ grid cells), or measuring the similar distances, is very laggy and frequently times out.
This is somehow tied to the Map Distance per Cell setting. A setting <= 1.0 works fine. Anything above 1.0 and the problem shows itself.
Turning off AI has no impact.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should be no or minimal lag/delay for these actions. MT 1.5.10 did not display this behavior.
MapTool Info
Desktop (please complete the following information):
Additional context
Reported by Aninimouse on Discord.
It seems this started with PR c983dc18
I wasn't able to duplicate it myself, it seemed to move smooth enough for me.
Still a very noticeable delay with 1.5.14 between dragging and seeing the path plus distance appear. 100% reproducible. 1.5.10 has no delay.
In my case with a Distance per Cell of 5.0, I'm getting noticeable lag at a distance of around ~300 (so about 60 cells).
It gets real bad at a distance of around ~1000 (so about 200 cells).
No such lag in 1.5.10.
Same. At 300 cells, it might be a full second delay on my system.
Blank map?
Yep.
Tried setting Distance per Cell to 20.0 and it seems worse than at 5.0.
Somehow, distance being bigger causes the slowdown?
Yup. Set your map to 1.0 and it is just as fast as it was in 1.5.10.
In 1.5.10 the distance was calculated without the Distance per Cell / cell_cost , and it was multiplied in at the very end.
That was changed in 1.5.11.
PR #1398 fixes this for me. There might be a more elegant approach, though.
Tested against Terrain Mods, Token Ignores, Map rounding settings with no issues. Performance is back to 1.5.10 levels.
Awesome, thanks for fixing it, kind of weird behavior, would not have expected that...
Most helpful comment
Tested against Terrain Mods, Token Ignores, Map rounding settings with no issues. Performance is back to 1.5.10 levels.