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

Rework PlayerHead Getter. #1446

Merged
merged 3 commits into from
Jul 11, 2020

Conversation

BONNe
Copy link
Member

@BONNe BONNe commented Jul 8, 2020

Generate player head based on WebAPI (as it is faster) and GameProfile texture (require NMS).
A cache is suitable for storing into a file format. Not implemented, but it is possible to do it.
Add the ability to add custom HeadCache object into the local cache.
Add the ability to modify cache keeping length.
Add the ability to keep all, or just a single element into cache until the server restart.

NMS will not require a version update each time, as GameProfile is in a package that does not use version number.

Generate player head based on WebAPI (as it is faster) and GameProfile texture (require NMS).
Cache is suitable for storing into file format.
Add ability to add custom HeadCache object into local cache.
Add ability to modify cache keeping length.
Add ability to keep all, or just a single element into cache until server restart.
@Poslovitch Poslovitch added this to the 1.14.1 milestone Jul 8, 2020
@Poslovitch Poslovitch added Type: API relating to the BentoBox API Status: Need review Waiting for a review to be made on this Pull Request Type: Enhancement Improvement or modification which is usually a new feature. labels Jul 8, 2020
Copy link
Member

@tastybento tastybento left a comment

Choose a reason for hiding this comment

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

Overall this is really good. I am running it on the test server and I saw zero lag and no timings impact with it compared to the previous version which took avg of 264.92ms per. I recommend setting the cache to something big, like 1h or even longer. Thanks for this, we need this released asap to fix lag issue with Level.

src/main/java/world/bentobox/bentobox/Settings.java Outdated Show resolved Hide resolved
src/main/java/world/bentobox/bentobox/Settings.java Outdated Show resolved Hide resolved
src/main/java/world/bentobox/bentobox/Settings.java Outdated Show resolved Hide resolved
@Poslovitch Poslovitch added Status: Need revision Waiting for a revision to be made on this Pull Request and removed Status: Need review Waiting for a review to be made on this Pull Request labels Jul 9, 2020
- config will store time in minutes.
- default value will be 1h.
Copy link
Member

@tastybento tastybento left a comment

Choose a reason for hiding this comment

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

Good stuff.

Copy link
Member

@Poslovitch Poslovitch left a comment

Choose a reason for hiding this comment

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

Good job, BONNe.

@Poslovitch
Copy link
Member

@BONNe Please allow maintainers to edit this PR. I cannot solve the merge conflict manually.

@BONNe
Copy link
Member Author

BONNe commented Jul 10, 2020

The funniest part is that I cannot give access, as isaacs/github#1681 :D

@Poslovitch Poslovitch added Status: Done This issue has been completed or answered. This pull request has been merged. and removed Status: Need revision Waiting for a revision to be made on this Pull Request labels Jul 11, 2020
@Poslovitch
Copy link
Member

Thanks for the PR!

@Poslovitch Poslovitch linked an issue Jul 11, 2020 that may be closed by this pull request
@Poslovitch Poslovitch merged commit fa25961 into BentoBoxWorld:develop Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Done This issue has been completed or answered. This pull request has been merged. Type: API relating to the BentoBox API Type: Enhancement Improvement or modification which is usually a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TPS decay after running commands of addons
3 participants