The current range for looking for new gathering targets or foundations to build is hard-coded to 64.
A "problem" with that is that sometimes units don't gather targets while it looks like they should be in range (because the player does not know the 64 only the vision range, although the latter also only empirically.), see #5657. It also means that the value cannot be modded easily.
This patch defines the auto-gather/-build rates in the templates of their respective components, so that they can be tweaked more easily.
The increasing of the range can be done in a seperate patch.