diff options
author | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2024-07-10 10:52:42 -0700 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2024-08-16 09:27:41 -0700 |
commit | a57a99f5bcf38d4af4466b26f1b9effe3bedd870 (patch) | |
tree | 4e2dfd014fa869f7ffc24de0c97caeda46f171d3 /main | |
parent | 2f2d1a7e68d315e5f26cde30532a51087536c9f6 (diff) | |
download | redot-engine-a57a99f5bcf38d4af4466b26f1b9effe3bedd870.tar.gz |
Memory cleanup and optimizations
- Returns an empty list when there's not registered plugins, thus preventing the creation of spurious iterator objects
- Inline `Godot#getRotatedValues(...)` given it only had a single caller. This allows to remove the allocation of a float array on each call and replace it with float variables
- Disable sensor events by default. Sensor events can fired at 10-100s Hz taking cpu and memory resources. Now the use of sensor data is behind a project setting allowing projects that have use of it to enable it, while other projects don't pay the cost for a feature they don't use
- Create a pool of specialized input `Runnable` objects to prevent spurious, unbounded `Runnable` allocations
- Disable showing the boot logo for Android XR projects
- Delete locale references of jni strings
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/main/main.cpp b/main/main.cpp index e1d53e7f1b..6309980667 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2942,9 +2942,6 @@ Error Main::setup2(bool p_show_boot_logo) { id->set_emulate_mouse_from_touch(bool(GLOBAL_DEF_BASIC("input_devices/pointing/emulate_mouse_from_touch", true))); } - GLOBAL_DEF_BASIC("input_devices/pointing/android/enable_long_press_as_right_click", false); - GLOBAL_DEF_BASIC("input_devices/pointing/android/enable_pan_and_scale_gestures", false); - GLOBAL_DEF_BASIC(PropertyInfo(Variant::INT, "input_devices/pointing/android/rotary_input_scroll_axis", PROPERTY_HINT_ENUM, "Horizontal,Vertical"), 1); OS::get_singleton()->benchmark_end_measure("Startup", "Setup Window and Boot"); } |