Skip to content

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

@jan-osicka

Description

@jan-osicka

โ— 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ๐ŸŽฏ Needs testingThis Issue needs to be tested by our team to see if it can be reproduced.๐Ÿž Bug ReportA bug that needs to be fixed.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions