diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-08-11 15:19:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 15:19:11 +0200 |
commit | 62047e4e4848e511a5f4e0aa84bc4f512f075f8d (patch) | |
tree | 71333e70a1f14cf19178e84481daa2d3c51882ed /main | |
parent | a57d420224e1d2ac40281e81e1300184a8ce9902 (diff) | |
parent | ca117910da682fbff6b8d75aef5c958049d25e44 (diff) |
Merge pull request #51486 from reduz/fixes-to-mobile-renderer
Fixes and optimizations to mobile renderer
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index f899894642..7351dafa22 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1352,6 +1352,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph PROPERTY_HINT_RANGE, "0,1000,1")); GLOBAL_DEF("debug/settings/stdout/print_fps", false); + GLOBAL_DEF("debug/settings/stdout/print_gpu_profile", false); GLOBAL_DEF("debug/settings/stdout/verbose_stdout", false); if (!OS::get_singleton()->_verbose_stdout) { // Not manually overridden. @@ -1591,7 +1592,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) { rendering_server->init(); rendering_server->set_render_loop_enabled(!disable_render_loop); - if (profile_gpu) { + if (profile_gpu || (!editor && bool(GLOBAL_GET("debug/settings/stdout/print_gpu_profile")))) { rendering_server->set_print_gpu_profile(true); } |