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

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • Minecraft 19w02a, 1.15.2, 20w10a
    • None
    • None
    • Confirmed
    • Rendering

    Description

      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.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              runemoro Runemoro
              Votes:
              4 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: