Save tileset to a binary file error popup?

Godot Version

Godot v4.6 Stable

Question

I’m getting this error repeatedly in my top down 2d RPG project. What does this mean? 525 kb doesn’t sound large… I have this as a .tres, because it’s a 2d atlas with textures.

The text-based scene at path "res://scenes/Town1/island_test.tscn" is large on disk (525.6 KiB), likely because it has embedded binary data.
This slows down scene saving and loading.
Consider saving its binary subresource(s) to a binary `.res` file or saving the scene as a binary `.scn` file.
This warning can be disabled in the Editor Settings (FileSystem > On Save > Warn on Saving Large Text Resources).
1 Like

I think this is a warning when you have an integrated ressource.
In your case i don’t think ths is a problem (525kb is not large to load for now).
You can make it disapear in the project settings in Debug/GDscript if you want.

What does this part mean? ‘integrated resource’? I googled the error, and initially Google AI summary (which I don’t trust, mind you) said to:

Convert the Scene: Open res://scenes/Town1/island_test.tscn in the editor. Go to Scene > Save Scene As… and change the file extension to .scn (the binary version of a .tscn). This removes the overhead of text-parsing the embedded binary data.

However, I’m not sure what this means, logically. The difference between a .tscn and a .tscn.

Integrated ressource mean that the ressource is save in the scene, you can do that with script.

I’m gonna do some research for this bug.

Found !

.scn is a binary file, .tscn is a text file.

So your scene contains data like texture or script, and this cost in performance when loading the scene.

For get rid of this, you can save your ressources with the inspector when look at the nodes in the scene.

If you didn’t find can you give a screenshot pls

.scn is 0 and 1 (take no time), .tscn is text (take time)

Scenes are composed of nodes and resources, the resources can reside elsewhere on disk or be “integrated” where the resource is packed into the same scene file. If you are using a TileMapLayer it may have a large integrated tileset resource, you can right click these resources and choose “Save As…” and as the warning suggests make sure to save it as a .res resource file as opposed to a .tres text resource file. A larger issue would be if an image found it’s way integrated into the scene, image data is quite large and you would be making bloated copies of your files, this can happen if you accidentally used “Make Unique” on a large resource, in those cases try to right click and select “Load” or “Quick Load” to replace the unique-integrated resource with your normal on-disk resource.

Usually scenes are quite small, keeping them as .tscn text scene files is fine, and helps if you do ever need to edit it outside of the editor (in dire situations). All of these files are packed into binary formats when exporting so the speed benefit or loss is only while editing your game.

1 Like