From 13d53d72368b88326a9a0ba5b7a376a51ebc8780 Mon Sep 17 00:00:00 2001 From: Aarron Lee Date: Sun, 21 Jan 2024 19:16:38 -0500 Subject: [PATCH] disable gpu set only --- py_modules/steam_patch.py | 2 +- src/redux-modules/steamPatchMiddleware.ts | 4 +-- src/steamPatch/steamPatch.tsx | 44 +++++++++++------------ 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/py_modules/steam_patch.py b/py_modules/steam_patch.py index 9ced2be..cc00191 100644 --- a/py_modules/steam_patch.py +++ b/py_modules/steam_patch.py @@ -8,7 +8,7 @@ def set_values_for_game_id(game_id): set_tdp_for_game_id(game_id) - set_gpu_for_game_id(game_id) + # set_gpu_for_game_id(game_id) set_smt_boost_for_game_id(game_id) def set_smt_boost_for_game_id(game_id): diff --git a/src/redux-modules/steamPatchMiddleware.ts b/src/redux-modules/steamPatchMiddleware.ts index 34b9568..a3a9830 100644 --- a/src/redux-modules/steamPatchMiddleware.ts +++ b/src/redux-modules/steamPatchMiddleware.ts @@ -54,13 +54,13 @@ export const steamPatchMiddleware = if (action.type === resumeAction.type) { if (steamPatchEnabled) { - // setValuesForGameId(id); + setValuesForGameId(id); } } if (action.type === setCurrentGameInfo.type) { if (steamPatchEnabled) { - // setValuesForGameId(id); + setValuesForGameId(id); } } diff --git a/src/steamPatch/steamPatch.tsx b/src/steamPatch/steamPatch.tsx index e75cdd7..7b7d578 100644 --- a/src/steamPatch/steamPatch.tsx +++ b/src/steamPatch/steamPatch.tsx @@ -85,27 +85,27 @@ function manageGpu() { msgLimits.gpu_performance_manual_max_mhz = maxGpuFreq; // setGpuFrequency - if ( - msgSettingsPerApp && - msgSettingsPerApp?.gpu_performance_level === GpuPerformanceLevel.ENABLED - ) { - // per game GPU override - const updatedGpuFreq = msgSettingsPerApp?.gpu_performance_manual_mhz; - - if ( - updatedGpuFreq && - typeof updatedGpuFreq === "number" && - updatedGpuFreq >= minGpuFreq && - updatedGpuFreq <= maxGpuFreq - ) { - // setGpu(updatedGpuFreq, updatedGpuFreq); - } - } - // default GPU range - else { - // 0 resets gpu to auto - setGpu(0, 0); - } + // if ( + // msgSettingsPerApp && + // msgSettingsPerApp?.gpu_performance_level === GpuPerformanceLevel.ENABLED + // ) { + // // per game GPU override + // const updatedGpuFreq = msgSettingsPerApp?.gpu_performance_manual_mhz; + + // if ( + // updatedGpuFreq && + // typeof updatedGpuFreq === "number" && + // updatedGpuFreq >= minGpuFreq && + // updatedGpuFreq <= maxGpuFreq + // ) { + // // setGpu(updatedGpuFreq, updatedGpuFreq); + // } + // } + // // default GPU range + // else { + // // 0 resets gpu to auto + // // setGpu(0, 0); + // } } } @@ -134,7 +134,7 @@ function manageTdp() { updatedTDP <= maxTdp ) { // set TDP - // setTdp(updatedTDP); + setTdp(updatedTDP); } } else { // default TDP