maruohon / malilib

Library mod for masa's client-side Minecraft mods
GNU Lesser General Public License v3.0
294 stars 124 forks source link

Immersive Portals Issue #116

Closed Drew-Chase closed 1 year ago

Drew-Chase commented 1 year ago

Issue

When in the nether while looking through the Immersive Portal to the Overworld my FPS drops from 60 to 20 and the debugger it says malilib_renderworldlast is using ~27% total resources

Debug Tree

Instance Information

Versions

maruohon commented 1 year ago

Does the FPS recover if you toggle off MiniHUD main rendering (H) or Litematica main rendering (M + R)? If so, which one individually or both together?

Drew-Chase commented 1 year ago

it does not

Drew-Chase commented 1 year ago

Here is a video I recorded of the issue LINK

maruohon commented 1 year ago

Are you currently using Fabulous graphics? Then try switching to Fancy to see if that slow malilib_renderworldlast section disappears then.

Because I just found a few lines of code in that malilib render event handler that I have no recollection what they were for... But that piece of code only runs in the Fabulous graphics mode.

If it's not that, then try taking out MiniHUD and Litematica completely, and see if that malilib section is still high up in the profiler. It shouldn't do anything without any registered mod render handlers, except if you are in Fabulous mode, where it does those couple of extra calls that I don't remember why they are there... They were probably to fix some kind of issue somewhere...

Drew-Chase commented 1 year ago

So I removed malilib and all mods requiring it and it issue still persists this time it says "weather" is the issue... I should have checked this first, I apologize for bothering you.

P.S.

Love your mods!

maruohon commented 1 year ago

Okay. And thanks!

TBF I would pretty much expect there to be a fairly noticeable performance hit when you are essentially rendering two worlds simultaneously. It's just rather weird how it showed up in the malilib profiler section, unless it was actually malilib also (further?) slowing things down.