godotengine / godotengine/godot
Opening numerous scripts/docs in Script Editor slows down project loading and saving
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
- Reproducible in: 4.2.1.stable, Reproducible in 4.3.dev3 [36e943b6b], 4.0.stable, and v3.5.3.stable
### System information
Godot v4.2.1.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 SUPER (NVIDIA; 31.0.15.4617) - AMD Ryzen 9 3900X 12-Core Processor (24 Threads)
### Issue description
Opening numerous scripts and/or documentation pages in the Script Editor slows down the editor's saving and loading of scenes.
Loading the project takes significantly longer, and saving scenes is slower depending on hardware or potentially the OS.
Additionally, switching scenes, closing them, or opening new elements in the Script Editor is slower.
### Steps to reproduce
- Open the SceneTest1 file in the Scenes directory.
- Drag and drop all scripts in the Scripts directory into the Script Editor, opening documentation pages seems to cause slowdown as well.
- Reload the current project.
### Minimal reproduction project (MRP)
[Script Editor Test.zip](https://github.com/godotengine/godot/files/14395038/Script.Editor.Test.zip)
Contributor guide
Research direction
Use the linked Script Editor Test.zip and reproduce the issue by opening SceneTest1, dragging the Scripts directory contents into the Script Editor, and reloading the project. Compare project loading, scene saving, scene switching, and Script Editor operations with many scripts or documentation pages open; done means these operations no longer show the reported slowdown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, devtools, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100