From 99e06d83255c6e5483d7ef65a2ce46b6b07d0eb0 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:40:00 +0200 Subject: [PATCH] Make shader JIT off-by-default for arm64 temporarily --- include/config.hpp | 9 ++++++++- src/config.cpp | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) 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); } }