I think I had an eureka moment. get_valuable_fields() is in a coroutine and 
gets calculated in the background. The sleep time can be adjusted, but I think 
50ms is a good value. I tested 25ms which cut the time in half but the game was 
a little choppy. 
-- 
https://code.launchpad.net/~widelands-dev/widelands/bug-1810062-territorial-calculations/+merge/361366
Your team Widelands Developers is subscribed to branch 
lp:~widelands-dev/widelands/bug-1810062-territorial-calculations.

_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to     : widelands-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to