Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance: modifiers can cache their values to avoid curve evaluation if the controller input didn't change #156

Merged

Conversation

JonnyOThan
Copy link
Collaborator

This is slightly worse on the ground when no engines are on, but it's definitely slightly better in space.

Randomness controllers need another look since I think I might have broken them in the "DirectModifier" change.

-modifiers own their output array instead of the integrator
-modifiers grab their controller inputs directly instead of having the integrator pass them in
-this actually makes performance worse because random controllers will now keep things awake when they wouldn't have before
@ChrisAdderley ChrisAdderley merged commit edc33ec into post-kerbin-mining-corporation:dev Sep 30, 2024
@JonnyOThan JonnyOThan deleted the caching-modifiers branch September 30, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants