Sodium

Sodium

44M Downloads

"Use compact vertex format" causes severe flickering with iron bars

FewerFlaws opened this issue ยท 9 comments

commented

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

  1. Place two iron bars next to each other on the ground.
  2. Enable "Use compact vertex format" in Video Settings -> Advanced.
  3. Move camera slowly while watching the base of the bars.

Attachments

Compact Vertex Format Enabled:
2020-12-31_03 42 56

Compact Vertex Format Disabled, f3 debug activated:
2020-12-31_03 50 41

System Information

  • Java Version: 1.8.0_271 64 bit
  • CPU: Intel Core i7 3770
  • GPU: Nvidia GTX 1060
commented

This has now been fixed, right? As in, since the just-released 0.3.0?

commented

This is fixed with ea01727.

commented

Note: this also occurs with mangrove roots.

commented

Still is like this on Sodium 1.19.4, even with the default sodium settings

commented

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).

commented

https://bugs.mojang.com/browse/MC-192420
Not fixed with Minecraft 1.19.4

commented

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.

commented

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

commented

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.