Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Lithium: cache chunk gen sea level #349

Merged
merged 8 commits into from
Jan 25, 2021

Conversation

Titaniumtown
Copy link
Collaborator

@Titaniumtown Titaniumtown commented Jan 22, 2021

This ports the optimization from: CaffeineMC/lithium-fabric#179 (just recently merged)
Making it so the sea level chunk gen setting is cached instead of calling for it every single time a block is placed by the generator, for a total of 65536 registry lookups per chunk. While this isn't a huge performance boost, it's still there. SuperCoder7979 said that 13% of CPU time spent in populateNoise without the patch vs 10% with the patch

@Titaniumtown Titaniumtown dismissed MrIvanPlays’s stale review January 23, 2021 22:11

in this case, obfhelpers screw up everything so they shouldn't be added.

@Titaniumtown Titaniumtown added the Ready for Review This PR is ready get reviewed in order to get merged label Jan 23, 2021
@Titaniumtown Titaniumtown changed the base branch from ver/1.16.5 to dev/ver/1.16.5 January 23, 2021 22:24
@Titaniumtown
Copy link
Collaborator Author

Note: The PR to lithium was recently merged. Any more thoughts?

@Titaniumtown Titaniumtown dismissed ishland’s stale review January 25, 2021 01:10

was previously addressed

@Titaniumtown Titaniumtown requested review from ishland and removed request for MrIvanPlays January 25, 2021 01:10
@Titaniumtown
Copy link
Collaborator Author

Seems they changed it before pushing to lithium, so I have to update the patch: CaffeineMC/lithium-fabric@a55cfd1

@Titaniumtown Titaniumtown merged commit 9f58704 into dev/ver/1.16.5 Jan 25, 2021
@Titaniumtown Titaniumtown deleted the lithium/cache-sea-level branch January 25, 2021 01:52
ishland added a commit that referenced this pull request Feb 1, 2021
* add config for sand duping (#352)

* Lithium: cache chunk gen sea level (#349)

based off: CaffeineMC/lithium-fabric@a55cfd1

* PaperPR: Inline shift fields in EnumDirection (#350)

* Introducing: Yatoclip (#360)

* New async nbt cache (#347)

* update pom

* whoops

* Try to address path issue and improve Jenkins build speed

* Detailed lag and crash reports (#369)

Added "Suspected Plugins" to Watchdog and crash reports

* Drop sand duping

* Add branch specific versions

* Remove copyright

* Revert mysql-connector-java version bump

* Small fixes

* More detailed lag and crash reports

* Don't use branch information when generating metadata

* Fix Jenkins Builds version command

* Fixup patches

* Fix patch notes

* Pull Request compatibility for branch detection

* Fix Pull Request compatibility for branch detection

* Set context classloader before launch

* Inject server jar to SystemClassLoader before launch

* Try fix compile in java8

* Run tests on CodeMC and Github Actions

Co-authored-by: Simon Gardling <Titaniumtown@gmail.com>
Co-authored-by: Zoe <duplexsys@protonmail.com>
Co-authored-by: Hugo Planque <12386279+HookWoods@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ready for Review This PR is ready get reviewed in order to get merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants