Extremely low FPS UI with shader enabled
I'm running Iris 1.7 with Distant Horizons and a compatible shader. Whenever I bring up ANY sort of UI menu, my FPS gets extremely low. As soon as I leave the UI and return to normal gameplay, the FPS returns to normal shortly after. I've disabled DH and only ran the shader, and the problem persisted. I tried again with the shader completely disabled, and the problem was instantly resovled. Interestingly, I've noticed the problem doesn't seem to occur with the F3 menu open.
Solution:Jump to solution
@Carbon So, it looks like the culprit was the Windows Game Bar. It appears that whenever I installed Armoury Crate for my motherboard, it automatically added a game bar widget that linked it with my mobo software. In the settings of the game bar, I could see it had settings regarding window focus, but disabling them didn't work. It wasn't until I completely restored the gamebar settings that it started working again.
24 Replies
Here is a demonstration of what I mean:
the lag spike?
I should also mention, I've tried disabling all other mods, reinstalling minecraft from scratch by wiping out my entire .minecraft folder, and tweaked every setting I possibly could.
I've seen this before I think
Yes, if anything with a UI is rendered, such as the inventory or pause menu, my FPS just absolutely tanks
But you'll notice that very shortly after leaving the UI screen, everything returns to noraml 100+ FPS
Huh
yeah that's odd
I've been dealing with this about a month now, tried asking for help on both DH and Iris forum, but nobody seems to know how to fix it
I've seen a few mentions of it but the thread didn't lead anywhere
does it do that without iris?
No
It seems the second I have iris with a shader, this happens
Huh that's really weird
I'm running iris right now, but just with the shader disabled and all is perfect
Tried 2 different shaders now, bliss and complimentary
that is really odd
I haven't seen this but I'm going to suggest just trying this:
https://modrinth.com/mod/immediatelyfast
@Syllith
alternatively I'd like you to go try another shader and see if you get the same issue
@Carbon I will give that a shot, but I'm at work right now and won't be able to test until later today. I did notice a few things yesterday. I popped into a single player world and started typing in game chat. Very quickly, the FPS tanked. However, I noticed that the simple act of moving my mouse outside the game window restored the FPS to normal. Then, just hovering my mouse back over the minecraft window caused the FPS to tank again. This is a repeatable process every time. Immediately I started suspecting that Windows 11 was attempting to assign priority or power savings settings when the window was inactive. Clicking out of the window IMMEDIATELY restores FPS, but hovering out without clicking restores the FPS in about 1-2 seconds. Presumably, this is so windows doesn't change priorty / power savings if the user moves out of the window for a brief second.
I'm guessing that the game has some sort of internal power management state, or some kind of system that informs windows that the state of the game has changed, such as a UI being opened. I manually set the javaw bin I was using for the game to always high performance and restarted. Surprisingly, it fixed the FPS in single player while typing. I assumed it was fixed, then popped into a multiplayer game, and the problem reoccured shortly after.
Then, I tried using the version of java that shipped with the game, rather than the version 21, and from what I can tell so far, it's only happening when in fullscreen. Windowed mode appears to be working, but I can't be sure without more testing.
I will try that mod, but I wanted to add that additional info in case you have any ideas.
I can also try another shader, but I've tried 3 so far. Earlier I said I tried 2, but I suppose I meant to say that I actively use 2. I've tried a 3rd one, didn't really like it, so I got rid of it, but the problem was still happening with that 3rd one
Oh and I've tried manually setting CPU priority too, just in case that was the issue. No change
Yeah this is very weird, you aren't running any weird overlay programs or similar? unusual nvidia / amd panel configurations?
I've disabled Nvidia overlay, as it was bound to the same hotkey as another mod.
But I will double check to make sure it's truly disabled, and not just the hotkey. Fairly sure it is
Kind of just building a mental list of things to do when I get home. So far I will try that mod and check the overlay. Since I did notice a difference when adjusting the power settings for java 21, at least for singleplayer, I'm going to try to manually add the stock java binary to Windows and Nvidia power savings settings and set to high performance. I tried figuring out where the stock bin is, but I've yet to find it, so I wasn't able to add it yesterday
It's also worth noting that I did monitor task manager to see if I could see any usage spike when the FPS drop was happening, but I didn't notice anything odd. In fact, that's how I noticed it started to work when my mouse left the window. I was hovering back and forth between task manager and minecraft and that's when I noticed
Noting this down for future reference:
1. Install ImmediatelyFast mod (https://modrinth.com/mod/immediatelyfast)
2. Check that Nvidia and xbox overlay are disabled
3. Add stock javaw to windows and nvidia control panel to force enable high performance mode / disable power savings
4. Try running in windows 10 compatibility mode
5. Disable fullscreen optimizations (since the last time I tested, windowed mode appeared to be working)
6. Investigate Hardware-accelerated GPU scheduling in Settings > Display > Graphics > Change default graphics settings and set to "Disabled"
7. Long shot, but disconnect ALL additional monitors except the main monitor.
8. Another long shot, but there have been reports of certain mice or keyboard causing this issue. I have an "open source" keychron keyboard which is highly customizable and a razer deathadder mouse. Might as well try disconnecting them to see if it changes anything.
9. Check overall windows power management settings, not just the app specific ones
10. Try it in safe mode
11. Investigate gsync
Interesting:
Solution
@Carbon So, it looks like the culprit was the Windows Game Bar. It appears that whenever I installed Armoury Crate for my motherboard, it automatically added a game bar widget that linked it with my mobo software. In the settings of the game bar, I could see it had settings regarding window focus, but disabling them didn't work. It wasn't until I completely restored the gamebar settings that it started working again.
Only reason I caught onto game bar was because it was the only application that DIDN'T restore FPS to Minecraft when in focus
I was like "huh, that isn't behaving like the rest"
Only time will tell if it's really fixed, as I've been fooled before, but it's looking promising this time
Nooo not game bar :hed_angy:
That's caused problems for me in the past too, although I didn't think about that specifically first
I'm going to mark this as resolved for now just because overlays are most likely to cause this sort of problem
Yes it's definitely resolved. Played for hours after with zero issues. Hope this helps someone in the future
:shaq:
Windows Game Bar being tbe cause of your frame rate issue? Who would've thought of that?
This is good to know
Lots of people have had framerate issues with UIs