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

1.20.4 - Thirst saving with bigger amount of playerdata causes significant lag #47

Open
4 tasks done
jan-osicka opened this issue Oct 27, 2024 · 0 comments
Open
4 tasks done
Labels
🐞 Bug Report A bug that needs to be fixed. 🎯 Needs testing This Issue needs to be tested by our team to see if it can be reproduced.

Comments

@jan-osicka
Copy link

❗ Checklist

  • I am using the official version of Realistic Survival and did not modify the jar.
  • I am using an up-to-date "dev-build" (not "Spigot") version of Realistic Survival.
  • I know that issues related to other plugins need to be reported on their bug trackers and not here.
  • I searched for similar open issues and could not find an existing bug report on this.

📍 Description

When server actually uses this plugin it causes on versions 1.20.4 and 1.20.6 (these are tested, paper and purpur) the plugin is lagging the server due to saving of Thirst of players. Attaching log and also my player data from test server.

RSLag.log
playerdata.zip

📑 Reproduction Steps

  1. Install new server with latest dev build.
  2. Generate at least 200 unique players (or 2000 for TPS drop to single digits)
  3. Wait for Thirst to save and update
  4. Watch on Spark RSV consuming all the resources trying to save the data (tested on VPS, shared host and local pc)

💡 Expected Behavior

I expected better saving of players data. At least save it async not in the main thread

📷 Screenshots / Videos

No response

📜 Server Log

No response

💻 Server Software

Purpur

🎮 Minecraft Version

1.20.x

⭐ Realistic Survival version

latest

🧭 Other plugins

none

@jan-osicka jan-osicka added 🎯 Needs testing This Issue needs to be tested by our team to see if it can be reproduced. 🐞 Bug Report A bug that needs to be fixed. labels Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Report A bug that needs to be fixed. 🎯 Needs testing This Issue needs to be tested by our team to see if it can be reproduced.
Projects
None yet
Development

No branches or pull requests

1 participant