Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit 415fb51

Browse files
authored
Merge pull request #3062 from r3claimer/dev
Fix Mupen64 fps setting causing crash, Adding FPS option to MelonDS SA
2 parents 52e2f4e + 5d9f239 commit 415fb51

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

packages/emulators/standalone/melonds-sa/scripts/start_melonds.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ fi
3333
SLAYOUT=$(get_setting screen_layout nds "${GAME}")
3434
SWAP=$(get_setting screen_swap nds "${GAME}")
3535
SROTATION=$(get_setting screen_rotation nds "${GAME}")
36+
SHOWFPS=$(get_setting show_fps nds "${GAME}")
3637
SUI=$(get_setting start_ui nds "${GAME}")
3738
VSYNC=$(get_setting vsync nds "${GAME}")
3839

@@ -88,6 +89,12 @@ fi
8889
sed -i '/^ScreenVSync=/c\ScreenVSync=1' /storage/.config/melonDS/melonDS.ini
8990
fi
9091

92+
#Show FPS
93+
if [ "$SHOWFPS" = "1" ]
94+
then
95+
export GALLIUM_HUD="simple,fps"
96+
fi
97+
9198
#Set QT Platform to Wayland
9299
export QT_QPA_PLATFORM=wayland
93100
@PANFROST@

packages/emulators/standalone/mupen64plus-sa/mupen64plus-sa-core/scripts/start_mupen64plus.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,11 @@ else
112112
SET_PARAMS+=" --set Video-Glide64mk2[aspect]=0"
113113
fi
114114
if [ "${FPS}" = "true" ]; then
115-
export LIBGL_SHOW_FPS="1"
116-
export GALLIUM_HUD="cpu+GPU-load+fps"
115+
export GALLIUM_HUD="simple,fps"
117116
SET_PARAMS+=" --set Video-GLideN64[ShowFPS]=True"
118117
SET_PARAMS+=" --set Video-Glide64mk2[show_fps]=1"
119118
SET_PARAMS+=" --set Video-Rice[ShowFPS]=True"
120119
else
121-
export LIBGL_SHOW_FPS="0"
122-
export GALLIUM_HUD="off"
123120
SET_PARAMS+=" --set Video-GLideN64[ShowFPS]=False"
124121
SET_PARAMS+=" --set Video-Glide64mk2[show_fps]=0"
125122
SET_PARAMS+=" --set Video-Rice[ShowFPS]=False"

packages/ui/emulationstation/config/common/es_features.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,10 @@
572572
<choice name="180" value="2"/>
573573
<choice name="270" value="3"/>
574574
</feature>
575+
<feature name="show fps">
576+
<choice name="yes" value="1"/>
577+
<choice name="no" value="0"/>
578+
</feature>
575579
<feature name="vsync">
576580
<choice name="off" value="0"/>
577581
<choice name="on" value="1"/>

0 commit comments

Comments
 (0)