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

Slow world swapping #161

Open
gepbird opened this issue Sep 25, 2023 · 3 comments
Open

Slow world swapping #161

gepbird opened this issue Sep 25, 2023 · 3 comments

Comments

@gepbird
Copy link

gepbird commented Sep 25, 2023

I feel like with Optimized World Swapping enabled, changing worlds was pretty fast before, but now it feels slower.

I did some benchmarks (1 minute warmup), by checking how much time does it take to change worlds on Hypixel from sending a /hub command and seeing the first entity/chunk appear, here are the results:

With render distance 2:

  • Vanilla: 700ms
  • Patcher: 283ms
  • AxolotlClient: 300ms

With render distance 12:

  • Vanilla: 4400ms
  • Patcher: 1967ms
  • AxolotlClient: 300ms

With render distance: 32:

  • Vanilla: 4650ms
  • Patcher: 6650ms
  • AxolotlClient: 310ms

On normal render distance, Patcher is more than 2x faster than vanilla, but on 32 render distance, Patcher is actually slower than vanilla, how?? My only guess is forge slows down world loading.
AxolotlClient stays fast no matter the render distance. I wonder if it's possible to implement that speed up on forge too.

Some other information about the benchmark and my system:

  • Minecraft version: 1.8.9
  • Patcher and Forge version: 1.8.6 and 11.15.1.2318
  • AxolotlClient and Fabric version: 3.0.4 and 0.14.22
  • Java version: 1.8.0_382
  • OS: Arch Linux 6.5.4-arch2-1
  • GPU: nVidia GP107 [GeForce GTX 1050 Ti] (with proprietary driver)
  • CPU: Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
@Sychic
Copy link
Member

Sychic commented Sep 25, 2023

I'm unable to reproduce these results. The main things that patcher does is remove the loading screen and prevent a garbage collector call to make world swapping faster.

@gepbird
Copy link
Author

gepbird commented Sep 26, 2023

@Sychic How long does it take you to switch worlds in vanilla vs with Patcher? (and if they are slower than ~600ms, can you check it with AxolotlClient too?)

@Sychic
Copy link
Member

Sychic commented Oct 2, 2023

It takes me under a second for both so I'm unable to notice too much of a difference however vanilla is noticeably slower.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants