你可以使用WinPowerSet,玩CS2之前,把电源设置为“高性能”,玩后设置为“平衡”。
WinPowerSet 下载地址:
链接:https://pan.baidu.com/s/1iOp29c4ica9L47t_l9lZ2w?pwd=d248
提取码:d248
最近新配了一台12400F的电脑,CSGO都换成了CS2,一定要试一下。看到视频中调整WINDOWS电源管理可以提高CS2中的游戏帧数,也设置了一下电源中的“高性能”模式,打开CPUZ发现,睿频没有了,CPU一直工作在最高的频率下,原来WINDOWS中的电源设置是可以影响CPU睿频的,所以这样在CS2游戏中的最低帧数应该就不会很低。
电源模式设置为“平衡”:
电源模式设置为“高性能”:CPU一直用最高频运行,几乎不会降频。
C#全部代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
using System.Management;
using System.Threading;
using System.Security.Principal;
using Microsoft.Win32;namespace WinPowerSet
{public partial class Form1 : Form{public Form1(){InitializeComponent();//线程启动Control.CheckForIllegalCrossThreadCalls = false;Thread lsThread = new Thread(new ThreadStart(T1));lsThread.IsBackground = true;lsThread.Start(); }private void T1(){ }private void radioButton2_CheckedChanged(object sender, EventArgs e){Process da = new Process();da.StartInfo.FileName = "cmd.exe";da.StartInfo.UseShellExecute = false;da.StartInfo.RedirectStandardInput = true;da.StartInfo.RedirectStandardOutput = true;da.StartInfo.RedirectStandardError = true;da.StartInfo.CreateNoWindow = true;// da.OutputDataReceived += da_OutputDataReceived;da.Start();da.BeginOutputReadLine();da.StandardInput.WriteLine("powercfg -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c");}private void radioButton1_CheckedChanged(object sender, EventArgs e){Process da = new Process();da.StartInfo.FileName = "cmd.exe";da.StartInfo.UseShellExecute = false;da.StartInfo.RedirectStandardInput = true;da.StartInfo.RedirectStandardOutput = true;da.StartInfo.RedirectStandardError = true;da.StartInfo.CreateNoWindow = true;// da.OutputDataReceived += da_OutputDataReceived;da.Start();da.BeginOutputReadLine();da.StandardInput.WriteLine("powercfg -SETACTIVE 381b4222-f694-41f0-9685-ff5bb260df2e");}private void radioButton3_CheckedChanged(object sender, EventArgs e){Process da = new Process();da.StartInfo.FileName = "cmd.exe";da.StartInfo.UseShellExecute = false;da.StartInfo.RedirectStandardInput = true;da.StartInfo.RedirectStandardOutput = true;da.StartInfo.RedirectStandardError = true;da.StartInfo.CreateNoWindow = true;// da.OutputDataReceived += da_OutputDataReceived;da.Start();da.BeginOutputReadLine();da.StandardInput.WriteLine("powercfg -SETACTIVE a1841308-3541-4fab-bc81-f71556f20b4a");}private void toolStripButton1_Click(object sender, EventArgs e){System.Diagnostics.Process.Start("https://basis.blog.csdn.net/article/details/135963082");}}
}