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

(experimental) improved belt performance #677

Merged
merged 2 commits into from
Feb 18, 2023
Merged

(experimental) improved belt performance #677

merged 2 commits into from
Feb 18, 2023

Conversation

Sn1p3rr3c0n
Copy link
Collaborator

Needs some Testing.

Improves Performance by Optimizing the use of the OutputBeltAt Function
The Function was always used with the Same Parameter OutputCell() Since that value only changes when the Building is Placed, that means that it can be cached. Clearing the cache only when it is moved.

may need to check if the cache is cleared on reinstall
should we ever add a rotate after placement, that would need to clear aswell

Note: the numbers are misleading due to the use of profiling the Type. Actual load is much lower in both cases

Before
BeltProfile

After
BeltCache

@Sn1p3rr3c0n Sn1p3rr3c0n changed the title (experimental) improved belt performance by ~3x (experimental) improved belt performance Feb 6, 2023
@Sn1p3rr3c0n
Copy link
Collaborator Author

should be ready to merge

@Sn1p3rr3c0n Sn1p3rr3c0n merged commit bbd8551 into master Feb 18, 2023
@Sn1p3rr3c0n Sn1p3rr3c0n deleted the beltPerfOpt branch December 10, 2023 09:20
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.

1 participant