LODs not rendering in corners of render distance (with fog enabled in Optifine)
MrBenjaminBowman opened this issue ยท 11 comments
With Optifine on, render distance seems to be circular, while the LODs display in a box around the player, leaving a gap in the corners. Issue is more apparent on larger render distances. Issue may bias in the -X, -Z direction?
Corner chunks render in properly without Optifine.
I'm able to reproduce, with better detail
Basically, Optifine's render distance is still square, but it loads chunks in a circular fashion, and it takes quite a long time (a couple of minutes on a ryzen 3600 with a render distance of 20) to actually fill the whole render distance, so it makes it seem as if the render distance is circular.
When the whole render distance is filled, FP2 correctly displays the LODs, with no holes.
However, while the render distance is still loading, FP2 unloads the LODs before the chunks are actually generated, which leaves holes in the ground.
Because of how long it takes to actually load all the chunks it creates the illusion of a circular render distance.
Here's a video of it (YT because file size), it illustrates the situation pretty clearly. You can see how it loads chunks pretty fast for a while, then it stops loading, and then it slowly loads the rest.
On lower render distances it looks like the corners aren't loading because the area of slow loading chunks is just on the border of the render distance.
I went on to do more testing, but when I got on today, the problem seemed to have fixed itself. I reset my video settings again, and the problem came back.
Just found the issue!
Having Fog set to anything but Off creates the issue.
2021-08-21.23-53-18_compressed.mp4
Does terrain generate in the holes if you wait a couple minutes?
The holes remained regardless of time waited and render distance. Fog seemed to be the issue, turning fog off fixes the corners and they generate normally.
This makes sense, I think optifine might save the corner chunks from rendering because you're not able to see them with fog on anyway
alright, that makes a lot more sense - i've only tested a few times with fog enabled.
does this still occur using the latest jar from dev/gpu-frustum-culling
?
Using latest from dev/gpu-frustum-culling
, corner chunks still initially unload when toggling fog to fast/fancy. Chunks and LOD only load properly in the direction the player moves.
2021-08-23.12-12-55_compressed.mp4
Also, I had the game paused in the background while typing this, and it closed itself with exitcode -1073740791.
that's quite odd: i test almost exclusively with OptiFine and don't think i've ever noticed anything like that before. does it resolve itself if you look directly at the corners using OptiFine's zoom feature?
Nope, zooming doesn't affect result. Here's a video of the issue if it helps:
2021-08-20.09-59-31_compressed.mp4
Tried resetting video settings to default, still happens.
Using latest version of Optifine (HD U G5)