GPU: Split software to frontend/backend

This commit is contained in:
Connor McLaughlin
2020-11-21 13:32:58 +10:00
parent 03d4f80883
commit 2595e31575
20 changed files with 2035 additions and 970 deletions

View File

@ -461,7 +461,7 @@ void LibretroHostInterface::OnSystemDestroyed()
m_using_hardware_renderer = false;
}
static std::array<retro_core_option_definition, 44> s_option_definitions = {{
static std::array<retro_core_option_definition, 45> s_option_definitions = {{
{"duckstation_Console.Region",
"Console Region",
"Determines which region/hardware to emulate. Auto-Detect will use the region of the disc inserted.",
@ -542,6 +542,12 @@ static std::array<retro_core_option_definition, 44> s_option_definitions = {{
"OpenGL"
#endif
},
{"duckstation_GPU.UseThread",
"Threaded Rendering (Software)",
"Uses a second thread for drawing graphics. Currently only available for the software renderer, but can provide a "
"significant speed improvement, and is safe to use.",
{{"true", "Enabled"}, {"false", "Disabled"}},
"true"},
{"duckstation_GPU.ResolutionScale",
"Internal Resolution Scale",
"Scales internal VRAM resolution by the specified multiplier. Larger values are slower. Some games require "
@ -731,8 +737,7 @@ static std::array<retro_core_option_definition, 44> s_option_definitions = {{
"Controller 1 Analog Axis Scale",
"Sets the analog stick axis scaling factor.",
{{"1.00f", "1.00"}, {"1.40f", "1.40"}},
"1.00f"
},
"1.00f"},
{"duckstation_Controller2.Type",
"Controller 2 Type",
"Sets the type of controller for Slot 2.",
@ -753,12 +758,11 @@ static std::array<retro_core_option_definition, 44> s_option_definitions = {{
"Allows you to use the analog sticks to control the d-pad in digital mode, as well as the buttons.",
{{"true", "Enabled"}, {"false", "Disabled"}},
"false"},
{"duckstation_Controller2.AxisScale",
{"duckstation_Controller2.AxisScale",
"Controller 2 Analog Axis Scale",
"Sets the analog stick axis scaling factor.",
{{"1.00f", "1.00"}, {"1.40f", "1.40"}},
"1.00f"
},
"1.00f"},
{"duckstation_Display.ShowOSDMessages",
"Display OSD Messages",
"Shows on-screen messages generated by the core.",