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

Item frame models are quite unoptimized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.4, 1.20 Pre-release 1, 24w21b
    • Community Consensus
    • Performance, Textures and models
    • Normal
    • Gameplay

      The bug

      The models that item frames use (normal and containing maps) define far more faces than are actually necessary. They both define 22 texture planes, whereas the exact same visual result can be achieved with 18 planes for the normal item frame and 14 planes for the map item frame. The only noticeable difference is how the item frame looks when the player clips inside, which is not a concern at all.

      The end result is an item frame model whose file size is smaller, as well as an increase in performance if many item frames are present, which should make map walls and storage rooms less laggy, among other things.

      How to reproduce

      If you have a map room, storage area, or some other situation where a lot of item frames exist and you get noticeable FPS drops, try the attached resource pack and see if the situation improves.

      How to fix

      This is a very easy fix - all that needs done is for the template_item_frame.json and template_item_frame_map.json model files in vanilla to be replaced with those in the resource pack attached to this ticket. Mojang has my full permission (and strong encouragement) to use these models in the vanilla game to replace what is used currently.

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            11 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: