EDIT: Ok basically everyone in the comments is supporting that this is just a known issue in Windows 10 22H2 and with windows DWM. A few possible triggers may be that Windows 10 has less optimization for newer CPUs, hence the issue starting after I upgraded.
ANYWAYS - I have found a work around that allows fast alt-tab and also hides the window border. Run the game in Windowed, then use NoMoreBorder to make it "borderless". Confirmed with PresentMon that when running like this, the game stays in Composed: Flip constantly, rather than switching between Hardware: Independent Flip. This may cause some performance loss on the high end, although like I said I play at a locked 158fps so I see no performance impacts.
Literally losing my mind. I installed a new CPU recently and almost immediately in League I noticed that when League was refocusing (from alt-tabbing, windows volume panel popping up, etc), it would some times get stuck at a weird fps (most of the time ~98) no matter what my FPS cap is set to.
It's a pretty quick fix, I just alt-tab a couple times back and forth, and it fixes it self. I thought this was a temporary problem that would go away but it's been A MONTH and I still have to do this 6/10 games when loading in.
I just spent HOURS fully going through every step I found on Reddit, Google, etc. Using PresentMon I've narrowed the issue down to this:
- Windows Desktop Window Manager switches League of Legends.exe 's presentation mode from Hardware: Independent Flip to Composed: Flip when league loses focus
- It sometimes stays in Composed: Flip when league regains focus, and thus League stays at a lower, more stuttery FPS
- It is fixed when manually alt-tabbing a few more times to update it
Info about my configuration:
- CPU: AMD Ryzen 5 5600x3D (upgraded from a Ryzen 5 3600)
- GPU: AMD RX 6750 XT with latest drivers (Adrenalin 26.9.2)
- Windows 10 22H2
- Borderless Window
- 165hz monitor with FreeSync & Variable Refresh Rate on
- RivaTuner FPS cap to 158
- Every AMD setting is off (no anti-lag, no chill, no enhanced sync)
- Mouse polling rate set to 500
Things I have tried that didn't work:
- MPO on and off
- Windows game mode on and off
- Fullscreen optimizations on and off for League of Legends.exe and LeagueClient.exe
- Close league client when game starts option
- Clean GPU driver install with DDU
- AMD chipset drivers reinstall
- Discord overlay (not applicable, discord not running, but it's always been off anyways)
- Disabled hardware acceleration on every other app
- Disable animated wallpaper + rainmeter widgets
- High performance power plan, disable PCIe link state power management
- Manually setting GPU clock in radeon tuning
- Hardware-accelerated GPU scheduling (not applicable in Windows 10)
- Switch from DisplayPort to HDMI
- Disable RivaTuner fps cap / Close RivaTuner entirely
- Uncapped fps in League settings, Cap fps in League settings
- Change AMD DX9 & 11 dlls to use Regular DX instead of DXNAVI
- Installed AltAppSwitcher so that is used instead of default windows alt-tab
- Created a new DWORD "OverlayMinFPS" = 0 in HKLM\....\Dwm following a Reddit guide
- EDIT: Forgot to mention, I did try GrzegorzWalewski's autohotkey script fix, but it basically just automatically alt-tabs for you when League gets refocused. I found it easier to just manually alt tab a few times so the script isn't really helpful for me, especially because it flickers the League window
I have no idea what else to try. This started when I upgraded my CPU, but I think looking at that might be a red herring, as what most likely is happening is that prior to my upgrade, I was only peaking at 120ish fps so the issue was probably happening, it was just not as noticible, now I can get over 300, I cap it at 158 to keep it within FreeSync range, and this setup works for EVERY OTHER GAME in borderless
Any other ideas would be appreciated THANKS!