Skip to content

Commit

Permalink
disable gpu set only
Browse files Browse the repository at this point in the history
  • Loading branch information
aarron-lee committed Jan 22, 2024
1 parent 634f024 commit 13d53d7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion py_modules/steam_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions src/redux-modules/steamPatchMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
44 changes: 22 additions & 22 deletions src/steamPatch/steamPatch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// }
}
}

Expand Down Expand Up @@ -134,7 +134,7 @@ function manageTdp() {
updatedTDP <= maxTdp
) {
// set TDP
// setTdp(updatedTDP);
setTdp(updatedTDP);
}
} else {
// default TDP
Expand Down

0 comments on commit 13d53d7

Please sign in to comment.