dct icon indicating copy to clipboard operation
dct copied to clipboard

spawn method: do a per active region spawn method

Open jtoppins opened this issue 5 years ago • 3 comments

Currently all assets are spawned immediately after the theater is generated. To simulate a moving front and load balance the server switch to spawning assets per active region.

Allow the number of active regions to be configurable via a theater configuration option.

jtoppins avatar Dec 31 '20 08:12 jtoppins

Would it be a good idea to allow each region to have its own spawn cost, up to a maximum configurable total cost? Smaller regions with less objectives (made so for prioritization sake or even just grouped by design) would not cost as much as more expensive regions, while allowing the map to be populated at a more regular interval. Moving units, if introduced, could also be tied to "high-cost" regions so they only exist while a majority of previous objectives are cleared, as a way of mitigating server performance impact.

Some assets might also want to be spawned regardless of whether a region is deemed as active or not, so that long-range SAMs and CAP can still be a nuisance regardless of campaign progress.

ricmzn avatar Mar 24 '21 19:03 ricmzn

Have not thought about the per region spawning in a while.

jtoppins avatar Mar 26 '21 05:03 jtoppins

Some interesting progress being made here: https://github.com/ricmzn/dct/blob/feature-dynamic-spawning/src/dct/systems/RenderManager.lua

jtoppins avatar Sep 07 '21 19:09 jtoppins