These Lenovo machines (and some other OEMs) include drivers that gimp performance for some reason. Here's how to disable them,
- Open regedit
- Go to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ACPIVPC
- Change the value of Start to 4 (which is Disabled). Take note of the original value if you wish to revert it later.
- Go to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ipf_cpu
- Change the value of Start to 4 (which is Disabled). Take note of the original value if you wish to revert it later.
- Restart your PC.
- Go into BIOS and change "Performance Mode Setting" to Extreme to prevent the EC from overriding the PL1/PL2 settings.
- Open HWInfo and monitor the CPU and GPU power usage and available power limits. Make sure the CPU is able to pull PL1 140 / PL2 190
Vantage also has a bunch of background processes that can mess with your single thread performance. You can download Legion Toolkit from Github and use the in-app options to Disable Vantage Service and Hotkeys (Toolkit can replace that functionality).
You don't need to use Lock MMIO after you do these tweaks and avoid the weird freezes on reboot/resume from sleep.
Also if you are using *Custom* performance profile, use *Performance* instead as Custom introduces some weird stuttering that occurs frequently.
Amazing, this one simple trick improved my CPU single and multi-core performance by another ~5% on top of already great performance. Nice.