stepsword
TIPThe Iris Project
•Created by stepsword on 1/11/2025 in #iris-issues
getBuffer() allocates 1MB?
Is it just my misunderstanding? I'm referring to this: https://github.com/IrisShaders/Iris/blob/multiloader-new/common/src/main/java/net/irisshaders/batchedentityrendering/impl/SegmentedBufferBuilder.java#L36
Is there a workaround for this for mods with special entities / lots of particles that use getBuffer() frequently?
Here's two spark logs - vanilla getBuffer() takes basically no time, so it is kind of unexpected that this method gets such a huge overhead.
https://spark.lucko.me/OhdEXUiw7P (without Iris - getBuffer() taking 0.5% when spawning lots of particles)
https://spark.lucko.me/NPLvnM6GbQ (with Iris - getBuffer() taking 34% when spawning lots of particles)
6 replies