diff --git a/main.py b/main.py index a7d6b9d..b0e48db 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,7 @@ import time #import subprocess import os -VERSION = "0.4.0" +VERSION = "0.4.1" class Plugin: CPU_COUNT = 8 diff --git a/main_view.html b/main_view.html index d4259c4..0c038d9 100644 --- a/main_view.html +++ b/main_view.html @@ -99,20 +99,21 @@ await setCPUs(index, getToggleState(document.getElementById("smtToggle"))); selectNotch(ROOT_ID, await getCPUs() - 1, 8); } + + const TOGGLE_ON_CLASS = "gamepaddialog_On_3ld7T"; function setToggleState(toggle, state) { - const ENABLED_CLASS = "gamepaddialog_On_yLrDA"; - if (state && !toggle.classList.contains(ENABLED_CLASS)) { - toggle.classList.add(ENABLED_CLASS); + if (state && !toggle.classList.contains(TOGGLE_ON_CLASS)) { + toggle.classList.add(TOGGLE_ON_CLASS); } - if (!state && toggle.classList.contains(ENABLED_CLASS)) { - toggle.classList.remove(ENABLED_CLASS); + if (!state && toggle.classList.contains(TOGGLE_ON_CLASS)) { + toggle.classList.remove(TOGGLE_ON_CLASS); } } function getToggleState(toggle) { - return toggle.classList.contains("gamepaddialog_On_yLrDA"); + return toggle.classList.contains(TOGGLE_ON_CLASS); } async function toggleCPUBoost() { @@ -201,7 +202,7 @@ function selectNotch(rootId, index, elements) { // WARNING: this yeets any style in div of slider - const ENABLED_CLASS = "gamepadslider_TickActive_j418S"; + const ENABLED_CLASS = "gamepadslider_TickActive_1gnUV"; //console.log("Selecting notches up to " + index); let root = document.getElementById(rootId); root.style = "--normalized-slider-value:" + index/(elements-1) + ";"; @@ -242,131 +243,130 @@ - + - +
-
-
-
-
-
+
+
+
+
+
CPU SMT
-
-
-
-
+
+
+
+
-
Enables odd-numbered CPUs
+
Enables odd-numbered CPUs
WARNING: Disabling crashes the performance overlay.
+ + + +
+
+
Threads
+
+
+
+
+
+
+
+
+
+
+
+
1
+
+
+
+
2
+
+
+
+
3
+
+
+
+
4
+
+
+
+
5
+
+
+
+
6
+
+
+
+
7
+
+
+
+
8
+
+
- -
-
-
Threads
-
-
-
-
-
-
-
-
-
-
-
-
1
-
-
-
-
2
-
-
-
-
3
-
-
-
-
4
-
-
-
-
5
-
-
-
-
6
-
-
-
-
7
-
-
-
-
8
-
-
-
-
-
-
-
-
-
+
+
+
+
+
CPU Boost
-
-
-
-
+
+
+
+
-
Allows the CPU to go above max frequency
+
Allows the CPU to go above max frequency
-
-
+ -
-
-
Max Frequency
+
+
+
Max Frequency
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
1.7GHz
+
+
+
+
1.7GHz
-
-
-
2.4GHz
+
+
+
2.4GHz
-
-
-
2.8GHz
+
+
+
2.8GHz
@@ -376,33 +376,37 @@
+
+ +
+ -
-
-
GPU SlowPPT Power
+
+
+
GPU SlowPPT Power
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
0
+
+
+
+
0
-
-
-
Auto
+
+
+
Auto
-
-
-
Max
+
+
+
Max
@@ -410,82 +414,84 @@
-
-
-
GPU FastPPT Power
+
+
+
GPU FastPPT Power
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
0
+
+
+
+
0
-
-
-
Auto
+
+
+
Auto
-
-
-
Max
+
+
+
Max
+
+ -
-
-
Fan RPM
+
+
+
Fan RPM
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
0
+
+
+
+
0
-
-
-
1K
+
+
+
1K
-
-
-
2K
+
+
+
2K
-
-
-
3K
+
+
+
3K
-
-
-
4K
+
+
+
4K
-
-
-
5K
+
+
+
5K
-
-
-
6K
+
+
+
6K
-
-
-
Auto
+
+
+
Auto
@@ -496,42 +502,45 @@
-
-
-
Battery
+
+
+
Battery
-
-
-
-
Now (Charge)
-
-
:'( (|-_-|)
+
+
+
+
Now (Charge)
+
+
:'( (|-_-|)
-
-
-
-
Max (Design)
-
-
9000+ (420%)
+
+
+
+
Max (Design)
+
+
9000+ (420%)
-
-
-
-
PowerTools
-
-
v0.42.0
+
+
+
+
+
PowerTools
+
+
v0.42.0
+
+