Settings: Default to D3D11 renderer on Windows

This point it's less buggy and slightly more performant.
This commit is contained in:
Connor McLaughlin
2020-02-15 10:21:57 +09:00
parent 4681f9d744
commit 8eba4b379c
3 changed files with 10 additions and 3 deletions

View File

@@ -98,4 +98,11 @@ struct Settings
static std::optional<ControllerType> ParseControllerTypeName(const char* str);
static const char* GetControllerTypeName(ControllerType type);
static const char* GetControllerTypeDisplayName(ControllerType type);
// Default to D3D11 on Windows as it's more performant and at this point, less buggy.
#ifdef WIN32
static constexpr GPURenderer DEFAULT_GPU_RENDERER = GPURenderer::HardwareD3D11;
#else
static constexpr GPURenderer DEFAULT_GPU_RENDERER = GPURenderer::HardwareOpenGL;
#endif
};