Skip to content

Conversation

SofieBrink
Copy link
Collaborator

  • Improved performance of ModuleAutoCutDrogue by harmony patching events to fire when the chutes deploy instead of polling every frame.

Fixes #9

- Improved performance of ModuleAutoCutDrogue by harmony patching events to fire when the chutes deploy instead of polling every frame.
- Moved if statement for checking if drogue cutting has already happened this frame, would prevent setting triggered to true previously.
- Actually check if auto cutting drogues is enabled & rearange if statement to check the simple booleans first.
@SofieBrink SofieBrink added the enhancement New feature or request label Oct 12, 2024
@SofieBrink SofieBrink added this to the Version 1.0 milestone Oct 12, 2024
@SofieBrink SofieBrink requested a review from gotmachine October 12, 2024 09:55
@SofieBrink SofieBrink self-assigned this Oct 12, 2024
Copy link

@gotmachine gotmachine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, nice job :)

- Updated workflow files to set `use-ckan` to true to install the harmony dependency.
@SofieBrink SofieBrink force-pushed the ModuleAutoCutDrogue_Performance branch from 366bdc6 to 926b59a Compare October 12, 2024 11:16
- Reversed if in repack chute event so simple boolean gets evaluated first, might save a tiny amount of time.
@SofieBrink SofieBrink merged commit 48315e0 into main Oct 12, 2024
1 check passed
@SofieBrink SofieBrink deleted the ModuleAutoCutDrogue_Performance branch October 13, 2024 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

Improve performance of ModuleAutoCutDrogue
2 participants