Lizzie
3 days ago
committed by
crueter
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
4 changed files with
11 additions and
0 deletions
src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt
src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SettingsItem.kt
src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt
src/android/app/src/main/res/values/strings.xml
@ -31,6 +31,7 @@ enum class BooleanSetting(override val key: String) : AbstractBooleanSetting {
RENDERER_REACTIVE_FLUSHING ( " use_reactive_flushing " ) ,
ENABLE_BUFFER_HISTORY ( " enable_buffer_history " ) ,
USE_OPTIMIZED_VERTEX_BUFFERS ( " use_optimized_vertex_buffers " ) ,
ENABLE_GPU_BUFFER_READBACK ( " enable_gpu_buffer_readback " ) ,
SYNC_MEMORY_OPERATIONS ( " sync_memory_operations " ) ,
BUFFER_REORDER_DISABLE ( " disable_buffer_reorder " ) ,
RENDERER_DEBUG ( " debug " ) ,
@ -806,6 +806,13 @@ abstract class SettingsItem(
descriptionId = R . string . enable_buffer_history_description
)
)
put (
SwitchSetting (
BooleanSetting . ENABLE_GPU_BUFFER_READBACK ,
titleId = R . string . enable_gpu_buffer_readback ,
descriptionId = R . string . enable_gpu_buffer_readback_description
)
)
put (
SwitchSetting (
BooleanSetting . USE_OPTIMIZED_VERTEX_BUFFERS ,
@ -292,6 +292,7 @@ class SettingsFragmentPresenter(
add ( BooleanSetting . RENDERER_FORCE_MAX_CLOCK . key )
add ( BooleanSetting . RENDERER_REACTIVE_FLUSHING . key )
add ( BooleanSetting . ENABLE_BUFFER_HISTORY . key )
add ( BooleanSetting . ENABLE_GPU_BUFFER_READBACK . key )
add ( BooleanSetting . USE_OPTIMIZED_VERTEX_BUFFERS . key )
add ( HeaderSetting ( R . string . hacks ) )
@ -503,6 +503,8 @@
<string name= "renderer_reactive_flushing_description" > Improves rendering accuracy in some games at the cost of performance.</string>
<string name= "enable_buffer_history" > Enable buffer history</string>
<string name= "enable_buffer_history_description" > Enables access to previous buffer states. This option may improve rendering quality and performance consistency in some games.</string>
<string name= "enable_gpu_buffer_readback" > Enable GPU Buffer Readback</string>
<string name= "enable_gpu_buffer_readback_description" > Preserves GPU-modified buffer data by reading it back before uploads. Some games require this to render certain effects properly. May cause issues if the hardware cannot handle the additional workload.</string>
<string name= "use_optimized_vertex_buffers" > Optimized Vertex Buffers</string>
<string name= "use_optimized_vertex_buffers_description" > Enables optimized vertex buffer binding for improved performance. Requires Mesa 26.0+ Turnip drivers/ QCOM drivers. Will crash on older Turnip drivers (25.3 and below).</string>