Scalability
There are several ways to optimize for this situation. First, you don’t have to split into several game frames. To some extent, the problem of scalability. 100 units are at least 100 times more expensive than 1 unit.
, ? , . (, ) RTS. , . . - . . memoization.
. , . , memoization, , , memoize.
, , .
, . , , . , . , , , , - , , .
, , . , , , , . . , - . .
. n , . , . , . , . , .
, , , .
, , , . . , . , . "" , .