"Use compact vertex format" causes severe flickering with iron bars
FewerFlaws opened this issue ยท 9 comments
Expected Behavior
The bottom of iron bars should be clearly visible with no flickering or z-fighting.
Actual Behavior
The bottom of iron bars flickers with the texture of the block below it.
Reproduction Steps
- Place two iron bars next to each other on the ground.
- Enable "Use compact vertex format" in Video Settings -> Advanced.
- Move camera slowly while watching the base of the bars.
Attachments
Compact Vertex Format Enabled:
Compact Vertex Format Disabled, f3 debug activated:
System Information
- Java Version: 1.8.0_271 64 bit
- CPU: Intel Core i7 3770
- GPU: Nvidia GTX 1060
This is fixed with ea01727.
This is still present in 0.4.10 (one cannot remove 'compact vertex format' anymore).
This used to be a bug inherited from Vanilla, but this has been fixed in Vanilla (as of 1.19.4, at least). I can't reproduce it anymore in vanilla (1.19.4) but the issue remains open on mojang tracker (see below).
https://bugs.mojang.com/browse/MC-192420
Not fixed with Minecraft 1.19.4
It's my understanding that Sodium is displaying an underlying vanilla bug here. Relevant info from Jelly:
The problem is that Mojang relies on infinitesimally small offsets in some edge cases. There's not much we can do other than to try and retain as much precision as possible. But in the case of iron bars there, it looks unrelated. Their bottom face should not be visible if there's a block beneath it, so we're probably looking at some problem in the occlusion test.
Ah, okay. Following a link from there I found a fix for it in the fixes section of Vanilla Tweaks Resource Packs. I'll try that out =D
The vanilla tweaks context seems to resolve this issue above for time being although i'm pretty concerned on how mojang never provided a resolution to this and instead nagged the users to update drivers (See comments section for this one).
As for reproduction: Yes this is confirmed.