VectorizeSIMD Java flag breaks villager/passive mob rendering
brucethemoose opened this issue ยท 1 comments
What happened?
Villagers and passive mobs will turn invisible after some time (usually less than a minute), but only if the VectorizeSIMD flag is enabled.
Steps to reproduce the issue
-
Download the latest GraalVM EE Java 17 release. Its free, but requires registration here https://www.oracle.com/downloads/graalvm-downloads.html
-
Edit your settings to launch the game with GraalVM EE, with the following flags:
-Dgraal.VectorizeSIMD=true -Dgraal.UsePriorityInlining=false
-
Launch Minecraft 1.18.2 or 1.19.x with sodium, fabric, and iris, using GraalVM EE 17
-
Create a peaceful, superflat, singleplayer world
-
Find a village. After some time (usually less than a minute), villagers and passive mobs will turn invisible.
-
This will not happen when Dgraal.VectorizeSIMD is set to false.
It doesn't seem to matter if shaders are even enabled or not, it happens either way. It does not happen with Sodium by itself, and it doesn't happen in any other Java distribution, including GraalVM CE.
Screenshots
Shaders are completely disabled in the top screenshot, and enabled (Complimentary V4) in the bottom.
Log output
Minecraft Version
1.19.1 and 1.18.2
Iris Version
1.2.6
Operating System
Windows 10 21H2
What is your GPU?
Nvidia Geforce RTX 2060
Additional context
Also documented on Oracle's Github page: oracle/graal#4775
Unlike my closed sodium issue, I have confirmed this does not happen in vanilla, or with just sodium + fabric.