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

Restore rendering on a separate thread

This commit is contained in:
m4nu3lf
2017-10-06 23:24:23 +01:00
parent ebbe2bd572
commit 871c47a2bb
3 changed files with 7 additions and 39 deletions

View File

@@ -822,8 +822,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) {