Skip to content

Enormous file size if you make font unique #107483

Open
@OlegVegan

Description

@OlegVegan

Tested versions

  • Reproducible in 4.4.1 stable

System information

Godot v4.4.1.stable - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1660 SUPER (NVIDIA; 32.0.15.6614) - AMD Ryzen 9 3900X 12-Core Processor (24 threads)

Issue description

My main project started to load 5 times slower. I found out why it happens

Turns out that one of my scenes is now 165 Mb (used to be 4 Kb)
Image

It happened because I wanted my labels to have different fonts, that's why I made them unique (edit: Recursively)
Image

I reverted the label changes and it all went back to norm, the scene is now 4 Kb
I attempted to recreate the issue on a minimal project

Before making label unique (2 Kb):
Image

After (929 Kb):
Image

The change is huge, but not as dramatic as in my case
In the MRP I included my (small) game_ui.tscn file just in case

Steps to reproduce

  1. Add a Label to a CanvasLayer
  2. Add new LabelSettings
  3. Add a font
  4. Make LabelSettings unique (Recursive)

Minimal reproduction project (MRP)

bugreport.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions