Don't use Control spacers, instead you can use size flags and BoxContainer's separation for the same result. #7444
Replies: 7 comments 11 replies
-
Is this a proposal to change some part of Godot? If so, can you explain what are you modifying? Also, since it seems you hade done the modifications on your end, are you planning to make a pull request? |
Beta Was this translation helpful? Give feedback.
-
Apparently these are multiple files being modified:
Yes, I transcribed parts of the pictures and searched them in the code base. Yes, this is not an efficient way of doing things. |
Beta Was this translation helpful? Give feedback.
-
if you need any help please consider converting this to an issue then create a branch and give me access to it so I can apply the modifications from my branch and help removing the others because I will need some help doing it in some scripts since i can't track them if they are 3d related or with editor debugger if they are not inside the editor window. |
Beta Was this translation helpful? Give feedback.
-
based on this latest commit to the GLES3 branch I have removed more than 100 control nodes from the editor, and also have set This enhancement is particularly beneficial for the Editor, as it makes extensive use of Dialogs. By removing these control nodes, I have significantly improved the performance of the Editor. Control nodes, especially when large in size, can be resource-intensive for both the GPU and CPU. and you can improve the add_spacer function with just one line of code that prevents it's fill vertically if it's a horizontal spacer or vise-verse. |
Beta Was this translation helpful? Give feedback.
-
here's a benchmark to prove how the changes i have made can benefit godot when they gets implemented, just if anyone is ready to help me we can start on optimizing godot 2d builds and the editor, thank you ^^ |
Beta Was this translation helpful? Give feedback.
-
this is what happened after removing the Control spacers for both editor builds with 3d_disabled and more disabling of 3d code, the comparison is between this version which is the first one in the image after removing spacers and this one before removing spacers, actually removing them has resulted in a change for both CPU and GPU for the editor, and you can do better comparison than mine. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions