Iris + EMF drops the fps horribly

While developing my resource pack with a collection of mods that replace Optifine, I encountered a problem - when spawning 30+ zombies from my resource pack HIDYK's REALM (2.14.11, update in progress), the fps dropped to critical levels below 10 fps because of the models of the mobs, to which several textures are applied at once. As it turned out the problem is in Iris, because without it there is no such problem at all. This also happens in Iris 1.7.1 and Sodium 0.5.9. Traben helped me to find out the problem, so all further dialogues about more complicated aspects should be conducted with him. I could provide a snapshot of my resource pack, but to be clear, it was not published anywhere before the release.
No description
44 Replies
hidyk / хайдук
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
hidyk / хайдук
Traben asked me to pass this on 👆
Slooshie
Slooshie5mo ago
Can you see if updating your sodium and Iris fixes it?
hidyk / хайдук
Iris 1.7.3 and Sodium 0.6.0 cause even more interesting problems: my game just crashes after 1-2 seconds in the world. When closing it gives this:
Slooshie
Slooshie5mo ago
1.7.3 doesn’t work with 0.6 You need 1.8 This crash was caused by more culling though. You need to update that for it to be compatible with sodium 0.6
hidyk / хайдук
With More Culling 1.0.1, the FPS still keeps dropping
No description
Slooshie
Slooshie5mo ago
@IMS Oh also, could you test without any other mods besides sodium, Iris, and EMF? Just to make sure it’s not some complicated compatibility issue?
hidyk / хайдук
It was Traben's doing. Individually each mod does not cause errors, but when they are together - fps drops My fps is dropping as well
hardester
hardester5mo ago
Interesting case. Can you give us your mods list?
hidyk / хайдук
I think your developer should just test my resource pack + these two mods, as they are the ones causing these problems with my zombie models
hardester
hardester5mo ago
Custom zombie model? How many polygons did you add? :ioa:
hidyk / хайдук
The problem is definitely not the number of cubes, as there are very few. The maximum number of cubes in the model is 15 The same Optifine is just fine with these models. And EMF with Sodium. But it's worth adding Iris... 💥 What is the fate of this complaint?
Traben
Traben5mo ago
It is definetly an emf and iris interaction causing the lag, and happens on both the latest iris and 1.7.1 Iirc the model uses a lot of texture override which requires changing vertex consumers multiple times per render However I have no idea what the classes in the spark profile are doing or how they relate This lag does not occur with only emf and does not occur with only iris It is only both together With a cem pack like this loaded That lag also isn't noticeable until about 20+ zombies are present but that might just be on my hardware Takes time These are volunteers Ping me if you guys need more info I am keen to resolve this if it can be fixed on emfs end I just don't know where to start with the given information in the spark profile
hidyk / хайдук
Yeah, you already told me that. I just thought I'd be told straight away if the complaint was going to be passed on or if it was just pending or whatever
Traben
Traben5mo ago
That happened when they pinged IMS above That's the head iris dev
hidyk / хайдук
Aaaaah 😮
hardester
hardester5mo ago
I can't really test as I didn't bring my PC to my dorm for this week. :ioa: Pretty much hoped that someone else on the team able to test out your setup, which itself proven to take a while.
Traben
Traben5mo ago
Post your pack too @hidyk / хайдук
hidyk / хайдук
I can send it to anyone who needs it but I'm not gonna post it here until it's released
Traben
Traben5mo ago
Any updates?
John
John5mo ago
Mind sliding me the resource pack so I can do some testing? What? At least I offer to help one way or another by trying to replicate this behavior with my system
hidyk / хайдук
Any updates? Any updates?
Slooshie
Slooshie2mo ago
I don't think @IMS has seen this thread
IMS
IMS2mo ago
I don’t remember seeing this, no looking at the spark graph, this is the graph sorting which I didn’t make 😔 however I am playing Craftoria tomorrow which uses EMF, so I can do Stuff and check
LilyBot
LilyBot2mo ago
Reminder completed.
Reminder set!
I will remind you at <t:1741973508:F> (<t:1741973508:R>)
Use /reminder remove to cancel this reminder
LilyBot
LilyBot2mo ago
@IMS
Reminder
Set time
<t:1741923108:F>
IMS
IMS2mo ago
well um
IMS
IMS2mo ago
No description
LilyBot
LilyBot2mo ago
Reminder completed.
Reminder set!
I will remind you at <t:1742061797:F> (<t:1742061797:R>)
Use /reminder remove to cancel this reminder
hardester
hardester2mo ago
:kek:
LilyBot
LilyBot2mo ago
@IMS
Reminder
Set time
<t:1741975397:F>
IMS
IMS4w ago
i am finally here I have finally performed Analysis™️ first of all, the Animator system in EMF is very bad for performance (though without a JIT compiler for that, which is quite an amount of work, not really fixable) EMFAnimation is taking ~50% of the frame time for me I cannot replicate this specific behavior, though actually, i might just be doing it badly nope, still can't replicate maybe it's been fixed somewhat? it'll still be slow, but it shouldn't be that slow
Emil
Emil4w ago
I blame Minecraft 1.21.5 and the new particles or blocks with sounds, whatever it is make performance worse with sodium, iris, lithium, bsl shaders, everything is perfect on 1.21.4
IMS
IMS4w ago
this thread is from November
Emil
Emil4w ago
Hope you fix the problem like you guys did with this thread
Traben
Traben3w ago
can confirm the lag is all gone now while custom animations are always bad for performance. This issue, whatever it was, caused an excessive amount of lag that no other pack did and it was for a mob with no custom animations, just 30 or so of them on screen would bring you to like 10 frames if iris was installed @hidyk / хайдук there is your resolution lol
hidyk / хайдук
So my resource pack just isn't built for shaders on Iris? All of this can't be fixed?
IMS
IMS3w ago
You could probably make some hyper advanced JIT system for custom animations :trolley: (make an ASM class for each animation that does everything)
Traben
Traben3w ago
?? 👆 it appears to have been fixed just unintentionally along the way somewhere
hidyk / хайдук
Uh oh. I mistranslated that message lol

Did you find this page helpful?