Patcher icon indicating copy to clipboard operation
Patcher copied to clipboard

Slow world swapping

Open gepbird opened this issue 2 years ago • 3 comments

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

gepbird avatar Sep 25 '23 16:09 gepbird

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.

Sychic avatar Sep 25 '23 17:09 Sychic

@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?)

gepbird avatar Sep 26 '23 09:09 gepbird

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

Sychic avatar Oct 02 '23 19:10 Sychic