Skip to content

Commit

Permalink
Make shader JIT off-by-default for arm64 temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Jan 12, 2024
1 parent aaef3b6 commit 99e06d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion include/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void EmulatorConfig::load() {
rendererType = RendererType::OpenGL;
}

shaderJitEnabled = toml::find_or<toml::boolean>(gpu, "EnableShaderJIT", true);
shaderJitEnabled = toml::find_or<toml::boolean>(gpu, "EnableShaderJIT", shaderJitDefault);
}
}

Expand Down

0 comments on commit 99e06d8

Please sign in to comment.