Closed owosoup closed 1 week ago
It would be great if you could clarify if the issue is caused by Iris or Sodium, both do change the entity rendering code some, and Iris had performance problems in that area in the past. Maybe run without a frame limiter, to see if the issue can be replicated with Sodium only.
Maybe run without a frame limiter, to see if the issue can be replicated with Sodium only.
The issue is caused by sodium, I've only mentioned it briefly but yeah. Iris only makes it more acute and noticeable, so I screenshotted with shaders to make it visible. I could do it without, but the fps would then be huge and the issue harder to notice. All my tests were done without fps caps either : the first screenshot is capped and the second uncapped. It does happen with sodium standalone, uncapped fps; but it's just minimal in this scenario. Which is good!
It just gets worse and worse as the game process gets more complex (more mods). I should run a spark benchmark some time, If I learn how to interpret results.
Bug Description
When not moving, in a village or with a lot of ticked entities, tiny lag spikes occur regularly and almost periodically. In an instance with only sodium and iris, it's not much, but on my other modpack, it gets amplified to 30fps lag spikes, which occur all the time when I'm near >~50 entities.
![2024-05-16_12 50 22](https://github.com/CaffeineMC/sodium-fabric/assets/95828007/586af907-6fc4-4710-83f1-c2adf3b210b1)
Don't feel obligated to fix this right now, it's just an inconvenience. But I'd love to have insight from someone who knows more about sodium than me.
Reproduction Steps
-Use Fabric/Quilt (haven't tested forge) -Have Sodium installed, maybe iris but it only makes it more noticeable (the default 120 fps cap hides it well when only using sodium) -Have a high render distance and a bit of entity ticking
Log File
Crash Report
crash-2024-05-16_13.09.57-client.txt (Manual F3+C crash)