mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
[macOS/iOS] Set MoltenVK logging level based on --verbose
flag.
This commit is contained in:
parent
cdd2313ba2
commit
75d0fcea16
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user