Skip to content

Conversation

OhmV-IR
Copy link
Contributor

@OhmV-IR OhmV-IR commented Oct 7, 2025

Closes #380

@Seggan
Copy link
Member

Seggan commented Oct 7, 2025

You system doesn't address the main point of different tick speeds: reducing the number of inventory iterations/item comparisons. rn it just loops over everything at the same tick speed

@Seggan
Copy link
Member

Seggan commented Oct 7, 2025

Sorry misread nvm

Copy link
Member

@Seggan Seggan left a comment

Choose a reason for hiding this comment

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

This doesn't allow for arbitrary tick speeds right?

@OhmV-IR
Copy link
Contributor Author

OhmV-IR commented Oct 7, 2025

This doesn't allow for arbitrary tick speeds right?

no, we don't want arbitrary tick speeds since the number of comparisons increases along the order of nDistinctTickSpeeds * nPlayers, so if we have a bunch of different addons each with their own tick speeds, then we have to check every item again just for that addon's speed. I talked with Idra about this and we decided that these 3 speeds would fulfill 99% of use cases

Copy link
Member

@Seggan Seggan left a comment

Choose a reason for hiding this comment

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

Hit "approve" on accident 💀

Comment on lines +11 to +15
enum class InventoryTickSpeed(val tickRate: Long) {
FAST(10),
MEDIUM(20),
SLOW(40)
} No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

Needs docs on the tick rates

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.

PylonInventoryTicker
2 participants