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

Custom overlay textures are not cleared out of the memory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 24w44a, 1.21.3
    • Windows 11
    • Confirmed
    • Performance, Textures and models
    • Normal
    • Platform

      When a custom overlay is present in resource pack and is referenced by the data pack, that texture is loaded into the RAM. However, it seems like the game never clears them out even quitting the world, nor does it appears in the memory counter in the F3 debug screen.

      How to reproduce

       

      1. Open up Task Manager to monitor the RAM used by Minecraft.
      2. Prepare a lot of custom overlay textures, and display them one by one in game on screen.
      3. Note that the RAM used by Minecraft, according to the Task Manage, increases rapidly. However the value is only a little according to the debug screen.

      The attached recording.mp4 has this process recorded. In the video, I have a 1080p frame played on every game tick (20fps).

       

      4. Now quit and save the world. Check the Task manager, and the RAM is still not cleared. (See Quitting the World.mp4 for this one)

      Expected Result:

      The game should clear the memory used by custom overlays out of the memory.

       

      Additional Information:

      1. Exit the game will free the memory
      2. Unload the resource pack will free the memory

       

      Example

      An example resource pack and data pack is provided here: https://www.mediafire.com/folder/o8xf6r876p12n/Bug

      This is the same pack in the video. To use it, install the resource pack and data pack. Execute 

      function do:get

      to obtain a special item, then equip this item on your head.

      To stop, simply take it out of the player's head slot. Made for 1.21.3.

        1. Quitting the World.mp4
          1.89 MB
          Dahesor
        2. recording.mp4
          9.45 MB
          Dahesor

            Unassigned Unassigned
            Dahesor Dahesor
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: