mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add new performance option: Disable idle aircraft at airfields (#37)
This commit is contained in:
@@ -151,6 +151,9 @@ class AircraftGenerator:
|
||||
def _spawn_unused_for(
|
||||
self, squadron: Squadron, country: Country, faction: Faction
|
||||
) -> None:
|
||||
if self.game.settings.perf_disable_idle_aircraft:
|
||||
return
|
||||
|
||||
assert isinstance(squadron.location, Airfield)
|
||||
for _ in range(squadron.untasked_aircraft):
|
||||
# Creating a flight even those this isn't a fragged mission lets us
|
||||
|
||||
@@ -482,6 +482,12 @@ class Settings:
|
||||
section=PERFORMANCE_SECTION,
|
||||
default=True,
|
||||
)
|
||||
perf_disable_idle_aircraft: bool = boolean_option(
|
||||
"Disable idle aircraft at airfields",
|
||||
page=MISSION_GENERATOR_PAGE,
|
||||
section=PERFORMANCE_SECTION,
|
||||
default=False,
|
||||
)
|
||||
# Performance culling
|
||||
perf_culling: bool = boolean_option(
|
||||
"Culling of distant units enabled",
|
||||
|
||||
Reference in New Issue
Block a user