ecd434142f
* Fix game performance defaults not honoring existing settings. * Update Linux kernel to 6.7.3 (AMD64). * Switch libmodplug to use shared libraries. * Update cloud backup to not use run script.
34 lines
922 B
Bash
Executable file
34 lines
922 B
Bash
Executable file
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
|
|
|
. /etc/profile.d/001-functions
|
|
|
|
### Set the default performance scaling mode for a few systems.
|
|
for SYSTEM in dreamcast n64 ports psp psx saturn pcfx cdi
|
|
do
|
|
CPU_SETTING=$(get_setting ${SYSTEM}.cpugovernor)
|
|
if [ -z "${CPU_SETTING}" ]
|
|
then
|
|
set_setting ${SYSTEM}.cpugovernor performance
|
|
fi
|
|
GPU_SETTING=$(get_setting ${SYSTEM}.gpuperf)
|
|
if [ -z "${GPU_SETTING}" ]
|
|
then
|
|
set_setting ${SYSTEM}.gpuperf profile_peak
|
|
fi
|
|
done
|
|
|
|
for SYSTEM in gb gbc gba snes nes sms gamegear genesis mastersystem sega32x megadrive segacd megacd
|
|
do
|
|
CPU_SETTING=$(get_setting ${SYSTEM}.cpugovernor)
|
|
if [ -z ${CPU_SETTING} ]
|
|
then
|
|
set_setting ${SYSTEM}.cpugovernor powersave
|
|
fi
|
|
GPU_SETTING=$(get_setting ${SYSTEM}.gpuperf)
|
|
if [ -z ${GPU_SETTING} ]
|
|
then
|
|
set_setting ${SYSTEM}.gpuperf low
|
|
fi
|
|
done
|