Page 1 of 1

Request for array of bouding boxes in surface.chart

Posted: Wed Jan 19, 2022 1:52 pm
by ever_Lord
Hello,
TL;DR
I wonder if sending an array of bounding boxes in <<surface.chart>> would be faster than calling it multiple times.

What ?
In scenario "Biter Battles", we have an option to spy opposite force terrain. Actually, it loops over players of one force and chart it to other force with multiple calls of surface.chart(bounding_box).
As I am about to improve so they also see radar coverage, it may end in slowing down the game, so i'm wondering if we could call surface.chart within array of bounding_boxes.

Note : we don't want to use mods at all (for now).

Thanks!

Re: Request for array of bouding boxes in surface.chart

Posted: Wed Jan 19, 2022 2:27 pm
by Klonan
ever_Lord wrote:
Wed Jan 19, 2022 1:52 pm
Hello,
TL;DR
I wonder if sending an array of bounding boxes in <<surface.chart>> would be faster than calling it multiple times.

What ?
In scenario "Biter Battles", we have an option to spy opposite force terrain. Actually, it loops over players of one force and chart it to other force with multiple calls of surface.chart(bounding_box).
As I am about to improve so they also see radar coverage, it may end in slowing down the game, so i'm wondering if we could call surface.chart within array of bounding_boxes.

Note : we don't want to use mods at all (for now).

Thanks!
Unless it starts showing up in some profiling, I don't think it would make sense, throwing the bounding boxes to the game isn't really doing anything so theres no much overhead

Also the chart coverage has a timeout of 300 ticks, so you could spread the charting over that time period if you were extra concerned

Re: Request for array of bouding boxes in surface.chart

Posted: Thu Jan 20, 2022 6:51 am
by ssilk
moving to won’t implement