-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Added ability to get list of editor settings changed when saving editor settings. Optimised settings changed notification. #53839
Added ability to get list of editor settings changed when saving editor settings. Optimised settings changed notification. #53839
Conversation
0a5d899
to
a76b6b0
Compare
a76b6b0
to
1baa072
Compare
1baa072
to
ce9941b
Compare
Also it turns out when you change a shortcut, |
Looks good overall. We should probably go over all uses of |
The new methods should be synced in the class reference (and documented): https://github.com/godotengine/godot/runs/3916673006?check_suite_focus=true |
@EricEzaM It would be nice to have this finished and merged. Aside from speed ups, it helps to fix some annoying issues. |
ce9941b
to
66cd988
Compare
Made changes as per request, added documentation. |
This error appears when changing actions:
And this when changing shortcuts:
Everything else looks ok. |
Ah bugger, I added that last minute for validation that the setting passed to the mark as changed method actually exists. I guess I will remove it, I was uncertain about adding it in the first place anyway. |
66cd988
to
daceae7
Compare
Thanks! |
Getting the settings which were changed has been a common request. This also allows for some optimisation.
Debug build time savings
Saving settings 'hitch' before: 1000ms
Saving settings 'hitch' after: 350ms
There is still time to be gained, for example in
EditorInspector
,update_tree()
takes 0.25ms to run, but I am not sure why this is called when editor settings are changed. What changes is it responding to? Once we know that, then a check can be added to only conditionally run that method (e.g. if it is only changing due to theme changes)godothing.mp4