diff --git a/include/config.hpp b/include/config.hpp index 424d0741..155f5961 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -5,7 +5,14 @@ // Remember to initialize every field here to its default value otherwise bad things will happen struct EmulatorConfig { - bool shaderJitEnabled = true; + // Only enable the shader JIT by default on platforms where it's completely tested +#ifdef PANDA3DS_X64_HOST + static constexpr bool shaderJitDefault = true; +#else + static constexpr bool shaderJitDefault = false; +#endif + + bool shaderJitEnabled = shaderJitDefault; bool discordRpcEnabled = false; RendererType rendererType = RendererType::OpenGL; diff --git a/src/config.cpp b/src/config.cpp index 28946d52..cd4e1f79 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -58,7 +58,7 @@ void EmulatorConfig::load() { rendererType = RendererType::OpenGL; } - shaderJitEnabled = toml::find_or(gpu, "EnableShaderJIT", true); + shaderJitEnabled = toml::find_or(gpu, "EnableShaderJIT", shaderJitDefault); } }