mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 19:54:27 +00:00
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:
parent
91960b7b81
commit
1881b3adc5
4 changed files with 7 additions and 16 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue