HUD is still rendered although hidden.
Finsider opened this issue ยท 5 comments
This is more of a performance concern from me
When we toggled off 'fade' from autoHUD
The difference in FPS is the same.
Expected Behavior:
Increased FPS while the HUD is hidden (no fade), and
Not having a performance decrease when HUD is not hidden (yes fade)
If this isn't an issue then I'm sorry regarding these, but this is quite concerning to me
For the no fade variant: I did not add a shortcut here to disable rendering because users may configure it to not fully hide. By manually setting how far components move, you could for example set it so the whole HUD moves down so you can just about see your hearts. If I fully skipped rendering, I would need to first do some bounds checking.
As for the fade, I need to render items into a temporary buffer to be able to add transparency. This is mostly necessary because some items like beds still have their own custom renderer rather than using a sprite, and that doesn't play nicely otherwise. I can probably add a shortcut here to skip this step if the current opacity is 100%.
Thing is, I do not have 'move' enabled in the screenshot, I may have misunderstood something but the HUD does get hidden even when both 'move' and 'fade' disabled, without any animation whatsoever, and they're still being rendered (same FPS)
Is it possible to add a shortcut to disable rendering completely when the opacity are 0%? or in this case, when the hud is hidden without having to move outside the screen
Ah, right, I never considered that case! Should be trivial to skip rendering if no animation is active.
Thing is, I do not have 'move' enabled in the screenshot, I may have misunderstood something but the HUD does get hidden even when both 'move' and 'fade' disabled, without any animation whatsoever, and they're still being rendered (same FPS)
Ah, right, I never considered that case! Should be trivial to skip rendering if no animation is active.
Is it possible to add a shortcut to disable rendering completely when the opacity are 0%? or in this case, when the hud is hidden without having to move outside the screen
Yep, will add that in the next version.
While performance would have been on-par with vanilla in the no-animation mode, I have now implemented this in version 6.6. All item rendering is skipped if not necessary (except for the "move but no fade" case, that'll take some more clever logic).