diff --git a/bin/WinRing0x64.exp b/bin/WinRing0x64.exp new file mode 100644 index 0000000..0aa76f8 Binary files /dev/null and b/bin/WinRing0x64.exp differ diff --git a/bin/WinRing0x64.lib b/bin/WinRing0x64.lib new file mode 100644 index 0000000..0f16977 Binary files /dev/null and b/bin/WinRing0x64.lib differ diff --git a/bin/libryzenadj.dll b/bin/libryzenadj.dll new file mode 100644 index 0000000..1e146a2 Binary files /dev/null and b/bin/libryzenadj.dll differ diff --git a/bin/ryzenadj.exe b/bin/ryzenadj.exe index 3163ce2..57d4b05 100644 Binary files a/bin/ryzenadj.exe and b/bin/ryzenadj.exe differ diff --git a/index.html b/index.html index f3a2fc0..789a1de 100644 --- a/index.html +++ b/index.html @@ -119,6 +119,46 @@ +
++ + +
diff --git a/js/app.js b/js/app.js index 81161e9..d6ab208 100644 --- a/js/app.js +++ b/js/app.js @@ -53,11 +53,18 @@ function applyRyzenSettings() { value = value; break; + case "--max-gfxclk-frequency=": + case "--min-gfxclk-frequency=": + case "--max-socclk-frequency=": + case "--min-socclk-frequency=": + value = parseInt(value / 10) * 10; + break; + case "--psi0-current=": case "--vrmmax-current=": value = '0x' + decimalToHexString(value * 1000); break; - + default: break; } diff --git a/js/methods.js b/js/methods.js index 69c331c..82136bc 100644 --- a/js/methods.js +++ b/js/methods.js @@ -373,6 +373,10 @@ function getCurrentSettings(keyType) { "--vrmmax-current=": 'vrm_current_m_a', "--min-fclk-frequency=": 'min_fclk_frequency', "--max-fclk-frequency=": 'max_fclk_frequency', + "--min-gfxclk-frequency=": 'min_gfxclk_frequency', + "--max-gfxclk-frequency=": 'max_gfxclk_frequency', + "--min-socclk-frequency=": 'min_socclk_frequency', + "--max-socclk-frequency=": 'max_socclk_frequency', }; var settingsToBeUsed = {}; diff --git a/js/options_description.json b/js/options_description.json index 9c25510..aeeaceb 100644 --- a/js/options_description.json +++ b/js/options_description.json @@ -7,5 +7,9 @@ "temperature_limit_c": "The temperature the CPU can reach before boost levels off.", "vrm_current_m_a": "The limit of current we let the motherboard deliver to the CPU.", "max_fclk_frequency": "Fabric is AMD's marketing term for the bus connection that connects processor dies (GPU/CPU). This define the bus's max. clock limit.", - "min_fclk_frequency": "Fabric is AMD's marketing term for the bus connection that connects processor dies (GPU/CPU). This define the bus's min. clock limit." + "min_fclk_frequency": "Fabric is AMD's marketing term for the bus connection that connects processor dies (GPU/CPU). This define the bus's min. clock limit.", + "max_gfxclk_frequency": "The maximum clock speed the integrated GPU is allowed to run at.", + "min_gfxclk_frequency": "The minimum clock speed the integrated GPU is allowed to run at.", + "max_socclk_frequency": "The maximum clock speed the CPU is allowed to run at.", + "min_socclk_frequency": "The minimum clock speed the CPU is allowed to run at." } diff --git a/main.js b/main.js index d857693..07649d0 100644 --- a/main.js +++ b/main.js @@ -86,6 +86,31 @@ if (old_version !== new_version) { settings.set('latest_controller_tabs_settings', update_latest_settings_to_1_11_0(settings.get('latest_controller_tabs_settings'))); } + /** + * Since 1.12.0, new option to ryzenadj. + */ + if (compareVersions(old_version, '1.12.0') <= 0) { + const update_preset_to_1_12_0 = function(settings) { + // Adding missing options. + settings['apply_max_gfxclk_frequency'] = false; + settings['apply_min_gfxclk_frequency'] = false; + settings['apply_min_socclk_frequency'] = false; + settings['apply_max_socclk_frequency'] = false; + return settings; + }; + const update_presets_to_1_12_0 = function(preset_list) { + // For each preset. + for (const preset_name in preset_list) { + if (preset_list.hasOwnProperty(preset_name)) { + preset_list[preset_name] = update_preset_to_1_12_0(preset_list[preset_name]); + } + } + return preset_list; + }; + settings.set('presets', update_presets_to_1_12_0(settings.get('presets'))); + settings.set('latest_controller_tabs_settings', update_preset_to_1_12_0(settings.get('latest_controller_tabs_settings'))); + } + settings.set('settings', { ...settings.set('settings'), last_used_version: require('./package.json').version,