Skip to content

TrackingItemStackRenderState in GuiGraphics#renderItem can be reused for less GC #3470

@MukjepScarlet

Description

@MukjepScarlet

Request Description

version: mc1.21.11-0.8.2-fabric

On invocation of GuiGraphics.renderItem this method is called, and creates new int[]. In my game profiler this init allocated 40.38GB and the whole game took 239.57GB. There should be a way to reuse these arrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions