diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-07-05 15:34:18 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-07-05 15:40:33 +0300 |
commit | 75d0fcea16a7959bcf5deccd4e63c0bba3932a12 (patch) | |
tree | bc27ef883e8deabcbb298de3919388fc506b5706 | |
parent | cdd2313ba27d0a2600a18e849b4c5d1fd6a6e351 (diff) | |
download | redot-engine-75d0fcea16a7959bcf5deccd4e63c0bba3932a12.tar.gz |
[macOS/iOS] Set MoltenVK logging level based on `--verbose` flag.
-rw-r--r-- | main/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index f6c4df583b..397476ae39 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1956,6 +1956,10 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph OS::get_singleton()->_verbose_stdout = GLOBAL_GET("debug/settings/stdout/verbose_stdout"); } +#if defined(MACOS_ENABLED) || defined(IOS_ENABLED) + OS::get_singleton()->set_environment("MVK_CONFIG_LOG_LEVEL", OS::get_singleton()->_verbose_stdout ? "3" : "1"); // 1 = Errors only, 3 = Info +#endif + if (frame_delay == 0) { frame_delay = GLOBAL_DEF(PropertyInfo(Variant::INT, "application/run/frame_delay_msec", PROPERTY_HINT_RANGE, "0,100,1,or_greater"), 0); } |