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

[Bug]: Very long chunk loading times when logging in after a server starts up with paper anti xray engine mode 3 #3051

Open
2 tasks done
partydev opened this issue Jan 24, 2024 · 3 comments
Labels
Bug: Unconfirmed Unsure if the issue/bug is valid.

Comments

@partydev
Copy link

/mv version -p output

https://paste.gg/p/anonymous/78bec465cf194470b3bc0c31fc357bc5

Server logs

https://gist.github.com/partydev/87222f020f8223fa3bdf89fd6eb3de59

Server Version

This server is running Paper version git-Paper-"905f4e7" (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 905f4e7)
Error obtaining version information
Previous version: git-Paper-"07b956e" (MC: 1.20.4)

Fork of paper up to date with this patch.
https://github.com/PaperMC/Paper/commit/76da4bc683a51057eadfabc6e6694486a20a0d20

Bug Description

When a server starts up for the first time and has engine mode 3 enabled in paper config, it can take up to or more than 30 seconds for a player to finish loading terrain and see the chunks around them.

Steps to reproduce

  1. Download Paper.
  2. Set anti xray engine mode to 3 following their recommended config.
  3. Download Multiverse Core.
  4. Start the server.
  5. Attempt to connect.

Agreements

  • I have searched for and ensured there isn't already an open or resolved issue(s) regarding this.
  • I was able to reproduce my issue on a freshly setup and up-to-date server with the latest version of Multiverse plugins with no other plugins and with no kinds of other server or client mods.
@partydev partydev added the Bug: Unconfirmed Unsure if the issue/bug is valid. label Jan 24, 2024
@NeverGrowUp
Copy link

You have 24 world's... I assume you have decent server specs. I note you spawn in world spawn but have set keepspawninmemory set to false. Change this to true.
I assume you removed Terra and VoidGen to rule out those as potential issues.
There are no errors from multiverse, and no mention of chunks loading, so can only assume between your PC specs and your server specs, is where the issue lies.

@partydev
Copy link
Author

partydev commented Jan 25, 2024

You have 24 world's... I assume you have decent server specs. I note you spawn in world spawn but have set keepspawninmemory set to false. Change this to true. I assume you removed Terra and VoidGen to rule out those as potential issues. There are no errors from multiverse, and no mention of chunks loading, so can only assume between your PC specs and your server specs, is where the issue lies.

This issue does not happen when Multiverse is disabled. This issue only happens when both Multiverse and Paper Antixray are enabled as mentioned above.

Server is a dedicated OVH server with 10GB of RAM allocated with a 5600x with 250mbps up bandwidth. Spark profiler shows there is no issue there.

PC is 7900x 64GB memory on a 3070 with 400mbps down. Specs are not the issue. I will not be turning on keep spawn chunks in memory because it is unnecessary chunk loading and has zero impact on resolving this issue as the issue disappears when Multiverse is disabled even though spawn chunks in memory is set to false.

Multiverse is the only enabled plugin as explained in the log file provided. This issue disappears if one of Paper Antixray or Multiverse are disabled. The issue disappears if Multiverse is disabled and Paper Antixray is left enabled. Therefore it is reasonable to conclude Multiverse is the problem here.

@partydev
Copy link
Author

partydev commented Feb 3, 2024

Confirmed that with fewer (5) worlds loaded the issue goes away. However, I would expect to be able to load more worlds as the issue does not happen when paper anti-xray is enabled. Band aid fixed for now by preventing joins until 30 seconds after server has started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Unconfirmed Unsure if the issue/bug is valid.
Projects
None yet
Development

No branches or pull requests

2 participants