android: settings: Add reactive flushing as a default-disabled setting.
This commit is contained in:
		| @@ -33,6 +33,11 @@ enum class IntSetting( | |||||||
|         Settings.SECTION_RENDERER, |         Settings.SECTION_RENDERER, | ||||||
|         0 |         0 | ||||||
|     ), |     ), | ||||||
|  |     RENDERER_REACTIVE_FLUSHING( | ||||||
|  |         "use_reactive_flushing", | ||||||
|  |         Settings.SECTION_RENDERER, | ||||||
|  |         0 | ||||||
|  |     ), | ||||||
|     RENDERER_DEBUG( |     RENDERER_DEBUG( | ||||||
|         "debug", |         "debug", | ||||||
|         Settings.SECTION_RENDERER, |         Settings.SECTION_RENDERER, | ||||||
|   | |||||||
| @@ -321,6 +321,15 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView) | |||||||
|                     IntSetting.RENDERER_ASYNCHRONOUS_SHADERS.defaultValue |                     IntSetting.RENDERER_ASYNCHRONOUS_SHADERS.defaultValue | ||||||
|                 ) |                 ) | ||||||
|             ) |             ) | ||||||
|  |             add( | ||||||
|  |                 SwitchSetting( | ||||||
|  |                     IntSetting.RENDERER_REACTIVE_FLUSHING, | ||||||
|  |                     R.string.renderer_reactive_flushing, | ||||||
|  |                     R.string.renderer_reactive_flushing_description, | ||||||
|  |                     IntSetting.RENDERER_REACTIVE_FLUSHING.key, | ||||||
|  |                     IntSetting.RENDERER_REACTIVE_FLUSHING.defaultValue | ||||||
|  |                 ) | ||||||
|  |             ) | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -239,6 +239,10 @@ void Config::ReadValues() { | |||||||
|     Settings::values.renderer_force_max_clock = |     Settings::values.renderer_force_max_clock = | ||||||
|         config->GetBoolean("Renderer", "force_max_clock", true); |         config->GetBoolean("Renderer", "force_max_clock", true); | ||||||
|  |  | ||||||
|  |     // Disable use_reactive_flushing by default on Android | ||||||
|  |     Settings::values.use_reactive_flushing = | ||||||
|  |             config->GetBoolean("Renderer", "use_reactive_flushing", false); | ||||||
|  |  | ||||||
|     // Audio |     // Audio | ||||||
|     ReadSetting("Audio", Settings::values.sink_id); |     ReadSetting("Audio", Settings::values.sink_id); | ||||||
|     ReadSetting("Audio", Settings::values.audio_output_device_id); |     ReadSetting("Audio", Settings::values.audio_output_device_id); | ||||||
|   | |||||||
| @@ -328,6 +328,10 @@ shader_backend = | |||||||
| # 0 (default): Off, 1: On | # 0 (default): Off, 1: On | ||||||
| use_asynchronous_shaders = | use_asynchronous_shaders = | ||||||
|  |  | ||||||
|  | # Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory. | ||||||
|  | # 0 (default): Off, 1: On | ||||||
|  | use_reactive_flushing = | ||||||
|  |  | ||||||
| # NVDEC emulation. | # NVDEC emulation. | ||||||
| # 0: Disabled, 1: CPU Decoding, 2 (default): GPU Decoding | # 0: Disabled, 1: CPU Decoding, 2 (default): GPU Decoding | ||||||
| nvdec_emulation = | nvdec_emulation = | ||||||
|   | |||||||
| @@ -169,6 +169,8 @@ | |||||||
|     <string name="renderer_force_max_clock_description">Forces the GPU to run at the maximum possible clocks (thermal constraints will still be applied).</string> |     <string name="renderer_force_max_clock_description">Forces the GPU to run at the maximum possible clocks (thermal constraints will still be applied).</string> | ||||||
|     <string name="renderer_asynchronous_shaders">Use asynchronous shaders</string> |     <string name="renderer_asynchronous_shaders">Use asynchronous shaders</string> | ||||||
|     <string name="renderer_asynchronous_shaders_description">Compiles shaders asynchronously, reducing stutter but may introduce glitches.</string> |     <string name="renderer_asynchronous_shaders_description">Compiles shaders asynchronously, reducing stutter but may introduce glitches.</string> | ||||||
|  |     <string name="renderer_reactive_flushing">Use reactive flushing</string> | ||||||
|  |     <string name="renderer_reactive_flushing_description">Improves rendering accuracy in some games at the cost of performance.</string> | ||||||
|     <string name="renderer_debug">Graphics debugging</string> |     <string name="renderer_debug">Graphics debugging</string> | ||||||
|     <string name="renderer_debug_description">Sets the graphics API to a slow debugging mode.</string> |     <string name="renderer_debug_description">Sets the graphics API to a slow debugging mode.</string> | ||||||
|     <string name="use_disk_shader_cache">Disk shader cache</string> |     <string name="use_disk_shader_cache">Disk shader cache</string> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user