From a2c07009c583fa46f93a1fdb80739ad61576423d Mon Sep 17 00:00:00 2001 From: fewtarius Date: Wed, 31 Jan 2024 18:35:30 +0000 Subject: [PATCH] Bump the GPU frequency floor to 400MHz to improve UI response on RK3566 devices. --- .../hardware/quirks/platforms/RK3566-X55/060-game_settings | 5 ++++- packages/hardware/quirks/platforms/RK3566/060-game_settings | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/hardware/quirks/platforms/RK3566-X55/060-game_settings b/packages/hardware/quirks/platforms/RK3566-X55/060-game_settings index 21d421e4f..9f1c97631 100755 --- a/packages/hardware/quirks/platforms/RK3566-X55/060-game_settings +++ b/packages/hardware/quirks/platforms/RK3566-X55/060-game_settings @@ -4,11 +4,14 @@ . /etc/profile.d/001-functions +### Set the minimum GPU frequency to reduce UI latency. +echo 400000000 >${GPU_FREQ}/min_freq + ### Set the default performance scaling mode for a few systems. for SYSTEM in dreamcast n64 ports psp psx saturn gba pcfx cdi do SETTING=$(get_setting ${SYSTEM}) - if [ -z ${SETTING} ] + if [ -z "${SETTING}" ] then set_setting ${SYSTEM}.cpugovernor performance set_setting ${SYSTEM}.gpuperf profile_peak diff --git a/packages/hardware/quirks/platforms/RK3566/060-game_settings b/packages/hardware/quirks/platforms/RK3566/060-game_settings index 21d421e4f..9f1c97631 100755 --- a/packages/hardware/quirks/platforms/RK3566/060-game_settings +++ b/packages/hardware/quirks/platforms/RK3566/060-game_settings @@ -4,11 +4,14 @@ . /etc/profile.d/001-functions +### Set the minimum GPU frequency to reduce UI latency. +echo 400000000 >${GPU_FREQ}/min_freq + ### Set the default performance scaling mode for a few systems. for SYSTEM in dreamcast n64 ports psp psx saturn gba pcfx cdi do SETTING=$(get_setting ${SYSTEM}) - if [ -z ${SETTING} ] + if [ -z "${SETTING}" ] then set_setting ${SYSTEM}.cpugovernor performance set_setting ${SYSTEM}.gpuperf profile_peak