sp614x / optifine

1.8k stars 418 forks source link

[Visual bug] 1.17.1 Various non-solid blocks and mobs flickering black, water disappearing #6228

Open qapleulia opened 3 years ago

qapleulia commented 3 years ago

Description of Issue

From the preview versions of 1.17 Optifine to the current released version, in the game mobs as well as blocks like beds and chests occasionally flicker and/or turn solid black as they or I move around. Sometimes they just stay like that for a while, and sometimes it will come and go very quickly. Water also seems to react in a similar way to moving around, but instead of turning black, it seems to just disappear. Not everything turns black simultaneously either. Also, the "OpenGL Error: 1282 (Invalid operation)" keeps appearing in the chat frequently. I've added a few example screenshots in the end.

Steps to Reproduce

As far as I can tell it doesn't seem like anything specific causes it, just starts on its own after loading into the world. It seemed like new chunks loading made the OpenGL error message appear more often in chat but I don't know for sure.

OptiFine Version

OptiFine HD U G9

Installation Method

Standalone installer

F3 Debug Screenshot

2021-08-31_21 38 48

Prior Testing

I've tested in Vanilla without Optifine, and the problem doesn't occur. It doesn't occur in pre-1.17 versions of Optifine. I also don't have any resource packs or shaders. I've tried changing around the video settings to see if it changes anything but it doesn't seem to affect it. It happens in both singleplayer and multiplayer.

Additional Information

2021-08-31_21 36 44 2021-08-31_21 37 50 2021-08-31_21 38 46

LiamIwan commented 3 years ago

Hi this happens to me the entity or water and the error code OpenGL 1282 never happened me before this only at optifine and its 1.17 versions I've tried messing around with shaders resource packs but it still happens on single and multiplayer if u do find a way to fix this I would love to know thanks.

qapleulia commented 3 years ago

UPDATE: After further testing, it seems like turning off Mipmap Levels (and turning on anti-aliasing? maybe??) stops the problem at the cost of making some things like far away textures look very jagged. I hope it can get fixed but if anyone else is having the same issue this seems like a way to stop it for now.

sp614x commented 3 years ago

H1_pre2 has a bugfix, which may also fix this problem.

qapleulia commented 3 years ago

Update: I've been testing with H1_pre3, and the random flickering seems to have stopped (although since it wasn't constant before I can't be completely certain) (quick edit: it is in fact still continuing), but it seems like falling blocks semi-consistently causes it to happen still. Again with blocks like signs, shulker boxes, beds, and chests, as well as sometimes water and mobs. (edit cont.: also falling blocks.)

Also, I started getting an "OpenGL Error: 1280 (Invalid enum)" message, and items in the inventory flicker and appear black while scrolling through or searching in the creative menu, the search text disappears, as do some items (including a video because I don't know how to fully explain it.) I don't know if these are related to the other issue but like before, turning off Mipmap Levels and/or Anisotropic Filtering seems to stop it, so that's why I'm mentioning it here. In addition, after testing for a while in one world the problems seemed to lessen in frequency but started again when testing in a new world.

(Mentioned video, apologies about poor quality) https://user-images.githubusercontent.com/89870038/134836919-f1b05406-2639-4ce3-be7c-5e1df7961b5b.mp4 Example images 2021-09-27_04 33 50 2021-09-27_04 33 52 2021-09-27_04 53 04 2021-09-27_04 53 07

Edit 2: Another quick update because this seems to be endlessly inconsistent, here are some screenshots I got while Anisotropic Filtering and Mipmap Levels were both turned off. My 3rd person model disappeared, and though I couldn't get a screenshot of it the bed and chest as well as some mobs and later the water were also flickering black.

2021-09-27_06 22 04 2021-09-27_06 22 24

Cart3r1234 commented 3 years ago

I'm also having this issue in the latest 1.17.1 H1 pre, although it just seems to be entities flashing black, and not them turning invisible or water disappearing.

Cart3r1234 commented 3 years ago

Seems to only happen in multiplayer for me.

f3 screenshot: image

Baby-FarkMcGeezax commented 2 years ago

https://i.imgur.com/AdB5TAM.mp4 Still in HD U H2 pre1. Not water, but entities (mobs, item frames, paintings, signs) flicker black constantly.