1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Merge pull request #99010 from Hilderin/embedding-game-process

Embed game process in editor
This commit is contained in:
Rémi Verschelde
2024-12-20 23:56:43 +01:00
44 changed files with 1712 additions and 134 deletions

View File

@@ -755,7 +755,9 @@ void EditorNode::_notification(int p_what) {
}
// Set a low FPS cap to decrease CPU/GPU usage while the editor is unfocused.
OS::get_singleton()->set_low_processor_usage_mode_sleep_usec(int(EDITOR_GET("interface/editor/unfocused_low_processor_mode_sleep_usec")));
if (unfocused_low_processor_usage_mode_enabled) {
OS::get_singleton()->set_low_processor_usage_mode_sleep_usec(int(EDITOR_GET("interface/editor/unfocused_low_processor_mode_sleep_usec")));
}
} break;
case NOTIFICATION_WM_ABOUT: {
@@ -6732,6 +6734,10 @@ int EditorNode::execute_and_show_output(const String &p_title, const String &p_p
return eta.exitcode;
}
void EditorNode::set_unfocused_low_processor_usage_mode_enabled(bool p_enabled) {
unfocused_low_processor_usage_mode_enabled = p_enabled;
}
EditorNode::EditorNode() {
DEV_ASSERT(!singleton);
singleton = this;