Skip to content

remove OptimizedWorldTileEntitySet#133

Open
kalibrieren wants to merge 2 commits into
Wind-Development:masterfrom
kalibrieren:master
Open

remove OptimizedWorldTileEntitySet#133
kalibrieren wants to merge 2 commits into
Wind-Development:masterfrom
kalibrieren:master

Conversation

@kalibrieren

Copy link
Copy Markdown

fixes spawn rates


// Entities that do a scanPlayer# lookup, helps to slow down.
this.put(TileEntityEnchantTable.class, 20L);
this.put(TileEntityMobSpawner.class, 20L);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice work spotting the issue. But do we have to remove these optimizations entirely?

We could just delete this line and not register a custom interval, which would restore vanilla behavior. Or better we could make these configurable.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The performance difference is negligible.

I think it's better to remove it as most of the TileEntities have their tick methods cleared anyway.

Also, we should search for better optimizations instead of continuing to use these dirty ones that break vanilla expectations.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense. I assume you've tested it and everything is working ok?

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