Add shader cache and hardware shaders es feature for lime3ds-sa

This commit is contained in:
brooksytech 2024-04-10 18:32:39 +00:00
parent a732b617a4
commit 2f1faac54e
No known key found for this signature in database
2 changed files with 23 additions and 0 deletions

View file

@ -32,6 +32,9 @@ RENDERER=$(get_setting graphics_backend 3ds "${GAME}")
RES=$(get_setting resolution_scale 3ds "${GAME}")
ROTATE=$(get_setting rotate_screen 3ds "${GAME}")
SLAYOUT=$(get_setting screen_layout 3ds "${GAME}")
CSHADERS=$(get_setting cache_shaders 3ds "${GAME}")
HSHADERS=$(get_setting hardware_shaders 3ds "${GAME}")
# CPU Underclock
case "${CPU}" in
@ -56,6 +59,18 @@ case "${ROTATE}" in
1) sed -i '/upright_screen =/c\upright_screen = 1' /storage/.config/lime3ds/sdl2-config.ini;;
esac
# Cache Shaders
case "${CSHADERS}" in
0) sed -i '/use_disk_shader_cache =/c\use_disk_shader_cache = 0' /storage/.config/lime3ds/sdl2-config.ini;;
1) sed -i '/use_disk_shader_cache =/c\use_disk_shader_cache = 1' /storage/.config/lime3ds/sdl2-config.ini;;
esac
# Hardware Shaders
case "${HSHADERS}" in
0) sed -i '/use_hw_shader =/c\use_hw_shader = 0' /storage/.config/lime3ds/sdl2-config.ini;;
1) sed -i '/use_hw_shader =/c\use_hw_shader = 1' /storage/.config/lime3ds/sdl2-config.ini;;
esac
# Screen Layout
case "${SLAYOUT}" in
0)

View file

@ -592,6 +592,14 @@
<choice name="opengl" value="1"/>
<choice name="vulkan" value="2"/>
</feature>
<feature name="cache shaders">
<choice name="on" value="1"/>
<choice name="off" value="0"/>
</feature>
<feature name="hardware shaders">
<choice name="on" value="1"/>
<choice name="off" value="0"/>
</feature>
<feature name="resolution scale">
<choice name="Native 3DS" value="1"/>
<choice name="2x" value="2"/>