1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Merge pull request #11895 from m4nu3lf/rendering/separate_thread

Restore rendering on a separate thread
This commit is contained in:
Juan Linietsky
2017-11-21 14:31:14 -03:00
committed by GitHub
6 changed files with 361 additions and 1250 deletions

View File

@@ -832,8 +832,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
OS::get_singleton()->_keep_screen_on = GLOBAL_DEF("display/window/energy_saving/keep_screen_on", true);
if (rtm == -1) {
rtm = GLOBAL_DEF("rendering/threads/thread_model", OS::RENDER_THREAD_SAFE);
if (rtm >= 1) //hack for now
rtm = 1;
}
if (rtm >= 0 && rtm < 3) {