Delays when modifying or editing Nodes.

Godot Version

Godot_v4.3-stable_win64 & Steam ver.

Question

Whenever I edit any node in the scene tree, such as renaming or reordering them, Godot becomes unresponsive for a few seconds before recovering. What should I do? While it doesn’t prevent me from working, having to wait a few seconds after every modification is really frustrating.

thank you.

1 Like

If your scene tree is too big that’s a limitation from Godot 4.3, but was improved in the last versions, try the 4.4 beta 1 (do a backup of your project before).

1 Like

The issue remains unresolved.
However, after testing, I discovered that the lagging is caused by the use of TileMapLayer. Even with just a single TileMapLayer, it results in lagging, let alone the large number of TileMapLayers currently in use.
It causes lag when editing nodes, such as renaming, deleting, or rearranging node order.
How can this issue be resolved?
thank you.

I did a search on Godot github and didn’t found anything related, you can try open a new issue about that for be investigated:

1 Like

I checked the docs:

It mentions:
"For performance reasons, all TileMap updates are batched at the end of a frame. Notably, this means that scene tiles from a TileSetScenesCollectionSource may be initialized after their parent. This is only queued when inside the scene tree.

To force an update earlier on, call update_internals."

This seems to explain why heavy use of TileMapLayer causes lagging in the editor.
It mentions that update_internals can be used, but I don’t know how to use it to solve the issue.

thank you.

Found a potential optimization method.
As shown in the image, under TileSet → Resource, entering the absolute path of the image can significantly reduce the lagging issue when editing nodes caused by TileMapLayer.