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.

44 Replies

spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Traben asked me to pass this on 👆
Can you see if updating your sodium and Iris fixes it?
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:
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
With More Culling 1.0.1, the FPS still keeps dropping

@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?
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
Interesting case. Can you give us your mods list?

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
Custom zombie model? How many polygons did you add?
:ioa:
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?
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
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
That happened when they pinged IMS above
That's the head iris dev
Aaaaah 😮
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.
Post your pack too @hidyk / хайдук
I can send it to anyone who needs it
but I'm not gonna post it here until it's released
Any updates?
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
Any updates?
Any updates?
I don't think @IMS has seen this thread
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
Reminder completed.
Reminder set!
I will remind you at <t:1741973508:F> (<t:1741973508:R>)
Use
/reminder remove
to cancel this reminder@IMS
Reminder
Set time
<t:1741923108:F>
well
um

Reminder completed.
Reminder set!
I will remind you at <t:1742061797:F> (<t:1742061797:R>)
Use
/reminder remove
to cancel this reminder:kek:
@IMS
Reminder
Set time
<t:1741975397:F>
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
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
this thread is from November
Hope you fix the problem like you guys did with this thread
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
So my resource pack just isn't built for shaders on Iris?
All of this can't be fixed?
You could probably make some hyper advanced JIT system for custom animations
:trolley:
(make an ASM class for each animation that does everything)
??
👆
it appears to have been fixed
just unintentionally along the way somewhere
Uh oh. I mistranslated that message lol