mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-16 12:07:53 +00:00
Optimize SpiriV output
This commit is contained in:
parent
bd2f935c4d
commit
38737f26e5
13 changed files with 62 additions and 1 deletions
|
@ -18,6 +18,7 @@ enum class IntSetting(override val key: String) : AbstractIntSetting {
|
|||
RENDERER_ANTI_ALIASING("anti_aliasing"),
|
||||
RENDERER_SCREEN_LAYOUT("screen_layout"),
|
||||
RENDERER_ASPECT_RATIO("aspect_ratio"),
|
||||
RENDERER_OPTIMIZE_SPIRV_OUTPUT("optimize_spirv_output"),
|
||||
AUDIO_OUTPUT_ENGINE("output_engine"),
|
||||
MAX_ANISOTROPY("max_anisotropy"),
|
||||
THEME("theme"),
|
||||
|
|
|
@ -120,4 +120,15 @@ object Settings {
|
|||
entries.firstOrNull { it.int == int } ?: Center
|
||||
}
|
||||
}
|
||||
|
||||
enum class OptimizeSpirvOutput(val int: Int) {
|
||||
Never(0),
|
||||
OnLoad(1),
|
||||
Always(2);
|
||||
|
||||
companion object {
|
||||
fun from(int: Int): OptimizeSpirvOutput =
|
||||
entries.firstOrNull { it.int == int } ?: OnLoad
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -368,6 +368,15 @@ abstract class SettingsItem(
|
|||
descriptionId = R.string.renderer_force_max_clock_description
|
||||
)
|
||||
)
|
||||
put(
|
||||
SingleChoiceSetting(
|
||||
IntSetting.RENDERER_OPTIMIZE_SPIRV_OUTPUT,
|
||||
titleId = R.string.renderer_optimize_spirv_output,
|
||||
descriptionId = 0,
|
||||
choicesId = R.array.optimizeSpirvOutputEntries,
|
||||
valuesId = R.array.optimizeSpirvOutputValues
|
||||
)
|
||||
)
|
||||
put(
|
||||
SwitchSetting(
|
||||
BooleanSetting.RENDERER_ASYNCHRONOUS_SHADERS,
|
||||
|
|
|
@ -182,6 +182,7 @@ class SettingsFragmentPresenter(
|
|||
add(IntSetting.RENDERER_SCREEN_LAYOUT.key)
|
||||
add(IntSetting.RENDERER_ASPECT_RATIO.key)
|
||||
add(IntSetting.VERTICAL_ALIGNMENT.key)
|
||||
add(IntSetting.RENDERER_OPTIMIZE_SPIRV_OUTPUT.key)
|
||||
add(BooleanSetting.PICTURE_IN_PICTURE.key)
|
||||
add(BooleanSetting.RENDERER_USE_DISK_SHADER_CACHE.key)
|
||||
add(BooleanSetting.RENDERER_FORCE_MAX_CLOCK.key)
|
||||
|
|
|
@ -326,4 +326,15 @@
|
|||
<item>2</item>
|
||||
</integer-array>
|
||||
|
||||
<string-array name="optimizeSpirvOutputEntries">
|
||||
<item>@string/never</item>
|
||||
<item>@string/on_load</item>
|
||||
<item>@string/always</item>
|
||||
</string-array>
|
||||
<integer-array name="optimizeSpirvOutputValues">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
</integer-array>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -249,6 +249,7 @@
|
|||
<string name="renderer_anti_aliasing">Anti-aliasing method</string>
|
||||
<string name="renderer_force_max_clock">Force maximum clocks (Adreno only)</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_optimize_spirv_output">Optimize SPIRV output</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_reactive_flushing">Use reactive flushing</string>
|
||||
|
@ -680,6 +681,11 @@
|
|||
<string name="center">Center</string>
|
||||
<string name="bottom">Bottom</string>
|
||||
|
||||
<!-- Optimize SPIRV output -->
|
||||
<string name="never">Never</string>
|
||||
<string name="on_load">On Load</string>
|
||||
<string name="always">Always</string>
|
||||
|
||||
<!-- Licenses screen strings -->
|
||||
<string name="licenses">Licenses</string>
|
||||
<string name="license_fidelityfx_fsr" translatable="false">FidelityFX-FSR</string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue