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:
parent
7d2dd0bcbe
commit
15f6c8dd85
@ -25,6 +25,7 @@ BAI/ANTISHIP/DEAD/STRIKE/BARCAP/CAS/OCA/AIR-ASSAULT (main) missions
|
|||||||
* **[Performance]** Added performance option: Maximum front-line unit supply per control point.
|
* **[Performance]** Added performance option: Maximum front-line unit supply per control point.
|
||||||
* **[Performance]** Added performance option: Disable convoys.
|
* **[Performance]** Added performance option: Disable convoys.
|
||||||
* **[Performance]** Added performance option: Front-line troops prefer roads.
|
* **[Performance]** Added performance option: Front-line troops prefer roads.
|
||||||
|
* **[Performance]** Added performance option: Disable idle aircraft at airfields.
|
||||||
* **[Squadrons]** Squadron pilot limits enabled by default.
|
* **[Squadrons]** Squadron pilot limits enabled by default.
|
||||||
* **[UI]** Add livery selector to Air Wing Configurator's squadrons.
|
* **[UI]** Add livery selector to Air Wing Configurator's squadrons.
|
||||||
|
|
||||||
|
|||||||
@ -151,6 +151,9 @@ class AircraftGenerator:
|
|||||||
def _spawn_unused_for(
|
def _spawn_unused_for(
|
||||||
self, squadron: Squadron, country: Country, faction: Faction
|
self, squadron: Squadron, country: Country, faction: Faction
|
||||||
) -> None:
|
) -> None:
|
||||||
|
if self.game.settings.perf_disable_idle_aircraft:
|
||||||
|
return
|
||||||
|
|
||||||
assert isinstance(squadron.location, Airfield)
|
assert isinstance(squadron.location, Airfield)
|
||||||
for _ in range(squadron.untasked_aircraft):
|
for _ in range(squadron.untasked_aircraft):
|
||||||
# Creating a flight even those this isn't a fragged mission lets us
|
# Creating a flight even those this isn't a fragged mission lets us
|
||||||
|
|||||||
@ -482,6 +482,12 @@ class Settings:
|
|||||||
section=PERFORMANCE_SECTION,
|
section=PERFORMANCE_SECTION,
|
||||||
default=True,
|
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
|
# Performance culling
|
||||||
perf_culling: bool = boolean_option(
|
perf_culling: bool = boolean_option(
|
||||||
"Culling of distant units enabled",
|
"Culling of distant units enabled",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user