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

Wall multipart model system model optimization

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.4, 25w02a, 25w03a
    • Community Consensus
    • Performance, Textures and models

      Relates to: MC-260296 MC-262427 MC-262452 MC-262461 MC-262470 MC-262527 MC-262641 MC-262652 MC-262689 MC-262953 MC-267127 MC-267315 MC-267864 MC-279350

      The bug

      The current multipart system for walls can use more quads than are necessary to achieve an identical visual result. Making Minecraft render more quads increases render lag, so decreasing the amount needed will improve performance.

      The case in question is much the same as MC-267281, arising where two opposite connections of a wall are either both "low" or both "tall". Minecraft, by default, will render one model in each direction, with a total of two. However, the exact same visual outcome can be achieved using a single, continuous model, reducing the amount of quads used for this case from 10 to 6. Since there are no texture mapping issues on walls (unlike MC-109478 and MC-225819/MC-267871), this fix also completely preserves their appearance, so we get no bonus fixes.

      How to reproduce

      1. Create this superflat world:
        minecraft:barrier;minecraft:the_void
      2. Initiate flying mode
      3. /fill -30 -63 -30 30 -56 30 cobblestone_wall
      4. /fill -30 -55 -30 30 -48 30 cobblestone_wall
      5. /tp @s 0 0 0 0 90
      6. Compare framerates with and without the attached resource pack using F3+2

      Expected results

      Vanilla's framerates would be ideal.

      Actual results

      The resource pack gives better results.

      How to fix

      Adopt the system demonstrated by this resource pack for walls. I give Mojang full permission to use this resource pack to fix this optimization problem.

            Unassigned Unassigned
            muzikbike Connor Steppie
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: