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

Font bitmaps are loaded into memory multiple times

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.19.2
    • None
    • Plausible
    • Performance, Text

      It seems that the bitmap images in font providers are loaded into memory every time, even if they've already been loaded for a different provider / font.

      This can lead to OutOfMemoryErrors when creating multiple vertically moved fonts. (I know that this isn't an intended feature in the first place, but I think some sort of cache for these bitmaps would still be a good idea.)

       

      BitmapProvider#create

            Unassigned Unassigned
            StudioCode StudioCode
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: