-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very noticeable performance issues when adding nodes to a scene that contains many scripted nodes (editor) #78295
Comments
If you can compile the engine from source, you could look into bisecting the regression to greatly speed up troubleshooting. Given the presence of |
Sounds similar to #60127 |
Also keep in mind that |
Just to be clear, the simple reproduction project performs much faster in 4.0.2. There are no noticeable lags. Removing scripts from the nodes also reduces lags by a big margin. |
9fae654 is the first bad commit |
I've noticed this in my game too. Whenever I move a 3D object in the editor, it freezes for about a second. It definitely seems related to this script issue, as I was able to recreate the issue in a new scene with lots of duplicated nodes. The issue persisted until I finally tried removing the attached scripts, and then suddenly the issue went away. |
Just chiming in to say that I experience this with opening/switching to any large-ish scenes, which takes about 10 seconds in 4.1 and was nearly instant in 4.0. So I've stuck with 4.0.3. The issues for me started with 4.1-dev4. |
Will this be solved for the 4.1 release? |
I can confirm that #78670 improves performance. It is still worse than in version 4.0.2; however, the performance improvements are considerable and position it closer to 4.0.2 than beta 3. |
4.1-rc1 has eliminated the slowdown for me! :) |
Godot version
Godot 4.1-beta2
System information
Manjaro Gnome, Intel Core i7-11800H
Issue description
On a relatively modern laptop (Intel Core i7-11800H), in a scene with many scripted nodes (total of 900+ with roughly half of them scripted), adding or duplicating a node freezes the editor for several seconds. Godot 4.0.2 handles such scenes much better!
Here is a flame graph captured while repeatedly duplicating simple Marker2D nodes with Ctrl+D in a complicated scene:
Performance data file to use with hotspot v1.4.1 (relevant data starts at the 75-second mark and lasts about 20+ seconds):
perf.data.perfparser.zip
Steps to reproduce
Also affects scrolling the scene tree dock.
Minimal reproduction project
add_node_lags_repro.zip
The text was updated successfully, but these errors were encountered: