Possible Memory Leak. Excessive memory usage after changing settings one too many times.
djmrFunnyMan opened this issue ยท 1 comments
What happened?
I was messing with shader settings to look into a shader issue. I noticed that after messing with the settings for a while memory usage will constantly climb higher until it hits the allocation limit and constatnly triggers garbage collector resulting in heavy lag and the game being unplayable.
https://github.com/user-attachments/assets/2118e831-1296-4ce5-b80b-8e011b786fd0
Off the top of my head I think it might be related to Iris caching past shader settings so they compile faster if you select them again. Are those stored in the RAM? I feel like only the second most recent settings should be kept in RAM and the rest temporarily saved on the hard drive.
Screenshots
Freshly loaded into the world:
After messing with settings for a while:
Log output
latest.log
crash-2024-12-08_16.41.18-client.txt
Minecraft Version
1.21.4
Iris Version
iris-fabric-1.8.3+mc1.21.4.jar
Operating System
Windows 11
What is your GPU?
GTX 1060 6GB
Additional context
No response
Here's a spark profile