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

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 19w02a, 1.15.2, 20w10a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      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

              Assignee:
              Unassigned Unassigned
              Reporter:
              runemoro Runemoro
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: