dnd5e-helpers icon indicating copy to clipboard operation
dnd5e-helpers copied to clipboard

Cover calculation is extremely slow for large tokens with many small tokens on top

Open Zamrod opened this issue 2 years ago • 2 comments

If you create large vehicles and put a bunch of people on them and then have weapons on the vehicles then when you set MIDI QoL's optional setting for determining if Walls Block attacks to dnd5e helpers + AC and dnd5e helpers is set to 4 points as its method then the attack roll will take about 30-45 seconds to resolve and lock up Foundry. If you change Midi QoL to just "center check" it resolves immediately.

fvtt-Scene-wildspace.txt

Zamrod avatar Aug 14 '22 13:08 Zamrod

If Helpers is set to centerpoint only check (assuming the midi option "center check" you mentioned is a different thing), do you also get a similar speed up?

Just trying to triage -- this issue doesnt surprise me, but I havent seen it myself. I'll look into it when updating for v10. I can't promise anything, as the core logic is a nested loop, but maybe we can find some easy wins.

trioderegion avatar Aug 14 '22 14:08 trioderegion

If Helpers is set to centerpoint only check (assuming the midi option "center check" you mentioned is a different thing), do you also get a similar speed up?

It speeds up quite a bit when I do that. It still locks up for about a second though

Zamrod avatar Aug 14 '22 15:08 Zamrod