Skip to content

Conversation

@krossgg
Copy link
Contributor

@krossgg krossgg commented May 4, 2025

What

This PR removes the SERVER_TICK block property, which would dictate whether a machine should tick or not. While in theory, this may seem like a good idea, in reality, having to update the blockstate ends up affecting performance quite a bit.
Instead, just allowing the block entity to noop tick is more performant.

Outcome

An improvement in TPS/MSPT. In my heavy test case, the median MSPT decreased by 20%.

Before

image

After

image

Potential Compatibility Issues

I don't believe there are any...

@krossgg krossgg added the type: refactor Suggestion to refactor a section of code label May 4, 2025
@krossgg krossgg requested a review from a team as a code owner May 4, 2025 09:40
@screret screret merged commit 65e836c into 1.20.1 May 11, 2025
2 checks passed
@screret screret deleted the kr/⏯️ branch May 11, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: refactor Suggestion to refactor a section of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants