Improve GDScript Editor and Improve latency

Improvements:
- GDScript Highlighter is faster by 25% as keys are smaller (hashes instead of strings)
- Removes message queue from _apply_settings_change to allow resize to work correctly
- Some performance fixes are pending still

Note: this resolves the code editor behaving badly when resizing in debug builds
This commit is contained in:
Gordon MacPherson 2021-08-14 07:42:18 +01:00 committed by Rémi Verschelde
parent 91960b7b81
commit 1881b3adc5
No known key found for this signature in database
GPG key ID: C3336907360768E1
4 changed files with 7 additions and 16 deletions

View file

@ -1579,17 +1579,10 @@ void CodeTextEditor::_update_text_editor_theme() {
}
void CodeTextEditor::_on_settings_change() {
if (settings_changed) {
return;
}
settings_changed = true;
MessageQueue::get_singleton()->push_callable(callable_mp(this, &CodeTextEditor::_apply_settings_change));
_apply_settings_change();
}
void CodeTextEditor::_apply_settings_change() {
settings_changed = false;
_update_text_editor_theme();
font_size = EditorSettings::get_singleton()->get("interface/editor/code_font_size");