Small project takes longer than usual to load

Godot Version

Godot 4.3, Steam

Question

Recently, one of my projects suddenly took longer to save and run than usual. When saving it gets stuck on a “Saving Scene: 100%” progress bar for about 6 seconds, and when attempting to play the main scene it gets stuck on the same saving scene prompt for about the same amount of time and then gets stuck on the Godot splash screen for about 10 seconds. Additionally, when loading into the editor, there is a progress bar that says, “Scanning files” and it stays there for about 8 seconds. The problem I have with this is that the project is pretty small with only 4 scenes, 5 scripts, and 1 texture. I have tried the Godot download from the website, I have tried unplugging my mouse, keyboard, and microphone when loading in, and my graphics card drivers are updated. I have also checked if other projects are having the same problem which they were not. I am pretty new to Godot and would appreciate your assistance.

Hello! I recently looked at the files for my project and one of the files was 100 mb. when looking into the file it had a lot of copies of the same lines. Is there any way to remove these? I dont remember adding anything like that in the editor
here is one of the repeating lines

[sub_resource type="Image" id="Image_(5 numbers or letters)"]
data = { 
"data": PackedByteArray("/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/(same thing repeating)="),
"format": "LumAlpha8",
"height": 256,
"mipmaps": false,
"width": 256
} 

the other one has one sub resource with a lot of these same “cashe” lines

[sub_resource type="FontFile" id="FontFile_ds86p"]
data = PackedByteArray(another really long string of seemingly random letters)
font_name = "Open Sans SemiBold"
style_name = "SemiBold"
font_weight = 600
subpixel_positioning = 0
msdf_pixel_range = 14
msdf_size = 128
cache/0/16/0/ascent = 18.0
cache/0/16/0/descent = 5.0
cache/0/16/0/underline_position = 1.60938
cache/0/16/0/underline_thickness = 0.796875
cache/0/16/0/scale = 1.0
cache/0/16/0/textures/0/offsets = PackedInt32Array(255, 0, 1, 13, 256, 13, 0, 16, 255, 29, 1, 18, 255, 47, 1, 16, 256, 63, 0, 19, 253, 82, 3, 20, 253, 102, 3, 16, 255, 118, 1, 17, 99, 135, 157, 13, 105, 148, 151, 16, 14, 164, 242, 17)
cache/0/16/0/textures/0/image = SubResource("Image_factt")
cache/0/16/0/glyphs/88/advance = Vector2(10, 16)
cache/0/16/0/glyphs/88/offset = Vector2(0, -10)
etc

I tried to delete them on a backup of my project, but it gave me an error. Does anyone have any idea of how to remove them?

Seems like you have a font file that’s been packed into the scene. For reference this is what happens when you right click “make unique” on a resource, though it can happen unintentionally for other reasons, like copying in some scenarios.

Look through your scene for any font resource, hovering the mouse over the font resource will only print “FontFile” instead of a path. Overwrite this file with a on-disk font by right clicking and loading the file you want to use.

1 Like

Thank you so much! That seemed to have fixed the problem.