I have the latest Optifine, 1.17-OptiFine_HD_U_G9_pre19, and sometimes it plays fine. Though I haven't met any goats yet! But sometimes it just doesn't render and I can walk right up to the cut off and not past. This happened after going to the Nether. Also when going back to the overworld. The mobs are also glitching when this happens. and shooting arrows results in dancing arrows. I have a RTX3070 i9 10850k so I don't think it's my processing power. Reloading doesn't solve it.
Linked issues
duplicates 1
Attachments
Comments 2

Also duplicates MC-227996.
Thank you for your report!
However, this issue is Invalid.
Your game, launcher or server is modified.
If you can reproduce the issue in a vanilla environment, please recreate the issue.
Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.
Any plugin issues need to be addressed to the creator of the plugin or resource pack.
If you have problems on large servers, such as The Hive and Hypixel, please contact them first as they run modified server software.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki