1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Merge pull request #61995 from Calinou/gles3-shader-compilation-default-asynchronous-cache

Enable asynchronous shader compilation + cache by default in GLES3
This commit is contained in:
Rémi Verschelde
2022-06-16 00:13:43 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -2735,7 +2735,7 @@ VisualServer::VisualServer() {
force_shader_fallbacks = GLOBAL_GET("rendering/gles3/shaders/debug_shader_fallbacks");
}
#endif
GLOBAL_DEF("rendering/gles3/shaders/shader_compilation_mode", 0);
GLOBAL_DEF("rendering/gles3/shaders/shader_compilation_mode", 2);
ProjectSettings::get_singleton()->set_custom_property_info("rendering/gles3/shaders/shader_compilation_mode", PropertyInfo(Variant::INT, "rendering/gles3/shaders/shader_compilation_mode", PROPERTY_HINT_ENUM, "Synchronous,Asynchronous,Asynchronous + Cache"));
GLOBAL_DEF("rendering/gles3/shaders/shader_compilation_mode.mobile", 0);
GLOBAL_DEF("rendering/gles3/shaders/max_simultaneous_compiles", 2);