Crendgrim / AutoHUD

A Minecraft mod for the Fabric launcher which dynamically hides parts of the user interface
GNU Lesser General Public License v3.0
16 stars 10 forks source link

Large FPS hit with specific hardware #58

Closed notLily72 closed 8 months ago

notLily72 commented 1 year ago

I noticed that when I have this mod enabled that it drastically lowers my fps.

image image

Crendgrim commented 1 year ago

Oh, that is not good. Can you give me a full mod list of mods you are using?

If you have time, could you test whether you can replicate that with no mods vs. only AutoHUD installed?

notLily72 commented 1 year ago

Mods: Cloth Config V11 Dynamic Crosshair Fabric Language Kotlin FallingTree FerriteCore Gamma Utils Iris Language Reload Lighty Mod Menu Quilted Fabric API Reese's Sodium Options Server Resoruce Pack Checker Sodium Sodium Extra Tax Free Levels Xaero's Minimap Xaero's Worldmap YetAnotherConfigLib

+AutoHUD

No Mods image

AutoHUD and Quilted Fabric API image

Crendgrim commented 1 year ago

Oh wow, that is a massive decrease without any other mods present. I cannot reproduce that at all on my machine (there is no measurable difference between running AutoHUD or not). I'm assuming this is something I do that the Intel driver doesn't like at all. I'll have to get out an old Intel machine to test things, so this might take a bit to investigate.

One thing you could test: does it still have such a performance impact if you disable "Fade" mode? That is the only slightly non-standard thing I do.

notLily72 commented 1 year ago

No mods: 117fps AutoHUD no fade: 90fps AutoHUD with fade: 38fps

Crendgrim commented 1 year ago

That is still a surprisingly high drop without fade mode and worth investigating. But at least it confirms that it is the extra rendering I need to do for fade mode. Thank you. It might not be possible to fully fix this, but I will try to optimise things as far as I can.

Crendgrim commented 1 year ago

I only have a much older Intel CPU with an integrated UHD Graphics 620. On that, I was not able to replicate this at all. With a scene comparable to yours, launching the game and waiting ~10 seconds for everything to stabilise, I am reaching 50fps with or without the mod (including fade mode). GPU usage is slightly higher with the mod running, so I'm afraid I'm CPU bound on this old machine. But it is nowhere close to the impact you are seeing :/

Crendgrim commented 1 year ago

Until I can get anything more substantial in (if that is even something I can do), version 6.0 comes with a minor performance improvement: when the hotbar is hidden, items don't get rendered at all (instead of rendered twice.. invisibly..). Won't help you much, but should do a little.

Crendgrim commented 8 months ago

Since I haven't heard anyone else complain about this, I'm closing this for now.