widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #15679
Re: [Merge] lp:~widelands-dev/widelands/bug-1810062-territorial-calculations into lp:widelands
>It might help to have the calculation in a parallel thread
This might help indeed. But first of all I try to get the current code to perform as fast as possible. As you pointed out, currently squares are calculated. Also I just realized that some coordinates are calculated twice. Getting rid of these unnecessary calculations would free allot of time (roughly up to 100 calculations per field).
I do have another idea in mind on how to avoid some more calculations, but these are only vague ideas.
--
https://code.launchpad.net/~widelands-dev/widelands/bug-1810062-territorial-calculations/+merge/361366
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug-1810062-territorial-calculations into lp:widelands.
References