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

pausedTickDelta updated when the game is unpaused rather than paused

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.3 Pre-Release 1
    • Minecraft 19w02a, 1.15.2, 20w10a, 1.19.2, 1.20.2
    • None
    • Confirmed
    • Rendering
    • Normal
    • Platform

      In MinecraftClient.render(), the pausedTickDelta (yarn names) field is being updated when the game is unpaused rather than paused:

      boolean paused = isIntegratedServerRunningAndNonNull() && currentGui != null && currentGui.isPauseScreen() && !server.isRemote();
      if (this.paused != paused) {
          if (this.paused) {
              pausedTickDelta = renderTickCounter.tickDelta;
          } else {
              renderTickCounter.tickDelta = pausedTickDelta;
          }
          this.paused = paused;
      }
      

      pausedTickDelta is used here:

      worldRenderer.render(paused ? pausedTickDelta : renderTickCounter.tickDelta, startTime, tick);
      

      This looks like a bug. When the game is paused, the rendering should be using the tick delta from when it was paused, not from when it was last unpaused.

       

            dinnerbone [Mojang] Nathan Adams
            runemoro Runemoro
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: