XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.15.2, 1.16 Pre-release 1
    • None
    • Unconfirmed
    • (Unassigned)

      I don't think that this is a bug, but it is really annoying.

      I don't know how exactly Mojang do benchmarks, but 40% time of CPU is spent on a garbage collector.
      For instance, version 1.12.2 spends only 1% for GC.
      Minecraft's allocation rate is around 100 megabytes per second.

      Most allocations are Vec3 objects for math, (why are they not mutable?).

      UPD: Yes, 1.12.2 is kinda old,but it's the last version before render engine/codebase rewrite.

      UPD2: Allocation rate above is actually not vanilla, it was OptiFine + tons of stuff removed from the client, math objects made mutable, axis boxes made mutable and so on.
      Vanilla:

        1. image-2020-06-05-00-57-16-600.png
          image-2020-06-05-00-57-16-600.png
          6 kB
        2. image-2020-06-05-01-00-35-552.png
          image-2020-06-05-01-00-35-552.png
          42 kB
        3. 1.12.2.png
          1.12.2.png
          12 kB
        4. vanilla.png
          vanilla.png
          21 kB

            Unassigned Unassigned
            __xDark __xDark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: