Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-278575

The integrated server seems to cause the rendering lags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21.3
    • None
    • Unconfirmed
    • (Unassigned)

      This problem may not only exist in 1.21.3, but I haven't tested it on more versions.

      Steps:
      Using the unmodified 1.21.3 version, create a single player game, enter the game and let it sit for a while (to allow any "warm-up" work to complete), then use F3+2 to check the FPS and TPS
      Use F3+N to enter spectator mode and then fly fast enough to observe the FPS go into violent fluctuations with the TPS (See attachment 1)

      Using the unmodified 1.21.3 version of Minecraft: Java Edition server
      Use the command `java -Xmx4096M -Xms1024M -jar server.jar nogui` to create a new world on the local machine
      Use the unmodified version 1.21.3 client above, use 127.0.0.1 to join the world, use spectator mode to fly, and the FPS becomes very smooth, without lag with TPS (See attachment 2)

      In theory, the default world generated in single-player mode and the  integrated server configuration are basically the same as the default world generated by the external vanilla server, except for the seed.

      I'm guessing that even though Minecraft has threaded chunk loading/generation, the integrated server is still blocking the rendering thread somewhere.

      Environment:
      Windows 11 22H2 22621.1194
      Dragonwell JDK 21.0.4.0.4

            Unassigned Unassigned
            001i1 001i1
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: