Mojira Archive
MC-187422

High allocation rate.

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:

Invalid

__xDark

2020-06-05, 01:00 AM

2020-06-05, 01:21 AM

2020-06-05, 01:17 AM

0

0

Unconfirmed

(Unassigned)

1.15.2, 1.16 Pre-release 1

-