IrisShaders / Iris

A modern shaders mod for Minecraft compatible with existing OptiFine shader packs
https://irisshaders.dev
GNU Lesser General Public License v3.0
3.33k stars 631 forks source link

Paper anti-xray engine 2 causes major lag #752

Open IMS212 opened 3 years ago

IMS212 commented 3 years ago

We don't have any specific statistics of what's causing this, but a spark log from another user shows that glfwSwapBuffers (Window.swapBuffers()) is taking almost 80% of the render time.

coderbot16 commented 3 years ago

This could be caused by a ridiculous amount of chunk updates if the anti x ray system is just constantly changing blocks around. It's worth testing if this is just a Sodium issue.

IMS212 commented 3 years ago

as reported by Castafer#9973:

Sodium, anti-xray engine 2 on including air = 730FPS
Sodium, anti-xray engine 2 off = 1030FPS
Iris without shader anti-xray engine 2 on = 630FPS
Iris with sildurs medium shaders anti-xray engine 2 on = 100FPS
Iris with sildurs extreme shaders anti-xray engine 2 on = 50FPS

Without anti-xray engine at all

Iris with sildurs medium shaders = 500FPS
Iris with sildurs extreme shaders = 240FPS

Various shaders were tested on extreme, and nearly crashed, which is why they aren't listed. The stuttering and FPS drops get much more severe the better the shader pack
Tested with an overclocked GTX 1660 TI by 110Mhz

These specific test results were looking at a Minecraft ocean at 10 render distance 

So this seems to be an Sodium issue that is greatly amplified by Iris.

IMS212 commented 3 years ago

It seems like this also affects vanilla performance a bit, but not nearly as much as with Iris.