sp614x / optifine

1.81k stars 418 forks source link

Between Chunks Lag #2578

Open OS-Void opened 5 years ago

OS-Void commented 5 years ago

MC Version: 1.14.3 Optifine Version: OptiFine_1.14.3_HD_U_F1 Java version "1.8.0_211" Java(TM) SE Runtime Environment (build 1.8.0_211-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

Resource Pack: None Issue persist even with ONLY OF installed. Render Distance: 9 (Realm Limitation)

Issue: When crossing chunks the game tends to lag (At least in some areas) Background info: So, before posting I went back to my base and started running between 4 chunks, and I don't notice any lag at y80ish WITH gardens and animal farms, and entities.

But when I go to a build I just started making, which is in the middle of the ocean at y134 and I pass by chunks, my screen gets spikes. I got 2 screenshot at the same area with and without optifine.

Comparing the two pictures seems like with Optifine the game has over 500+ chunk updates while without it only 37.

Things I've tried: Tried turning off/on ALL the options one by one and all at once. Tried running Optifine without any other mods (Including without Fabric) Tried running a new clean Optifine profile without any mods or alterations in the default minecraft launcher.

They all have the same issue, but when I play without Optifine, and with or without mods I dont have the issue, not sure if there's anything I can help with to resolve this, seems like the issue gets severe the higher in Y-level you go, as you see more of the chunks underneath, but again, default minecraft doesn't do it.

2019-07-01_16 44 04

2019-07-01_16 00 15

If theres any different settings between the pics dont worry about it, I've been playing with different settings back and forth to try to fix the issue, but nothing fixes it.

Observation: Seems like it has to do with the Ocean themselves, I flew at y154 in one straight line without issues, but the moment a huge body of water (ocean) needed rendering, each passage of a chunk is taking a toll on the game.

Edit: Console sometimes throws a warning info when crossing through the 4 chunks quickly: "[16:52:51] [main/WARN]: Something's taking too long! 'root.gameRenderer' took aprox 100.7944 ms [16:52:51] [main/WARN]: Something's taking too long! 'root' took aprox 101.147 ms"

sp614x commented 5 years ago

600 chunk updates with 60fps shouldn't happen. Usually optifine tries to load 1 chunk per frame (video settings -> quality -> chunk updates). It may be due to translucent chunk resorting (oceans), but they should also be limited to 1 per frame.

OS-Void commented 5 years ago

600 chunk updates with 60fps shouldn't happen. Usually optifine tries to load 1 chunk per frame (video settings -> quality -> chunk updates). It may be due to translucent chunk resorting (oceans), but they should also be limited to 1 per frame.

If it helps narrow the issue even more, playing with the settings further seems like biombe blend is hurting badly.

Biome Blend 15x15 2019-07-01_19 11 04

Biome Blend 5x5 2019-07-01_19 10 45

Biome Blend OFF 2019-07-01_19 13 52

Vanilla Minecraft (NO OPTIFINE) with Biome Blend 15x15 2019-07-01_19 19 04

Vanilla Minecraft only 3 chunk updates, while with Optifine over 600.

sp614x commented 5 years ago

With higher Biome Blend the chunk updates are becoming slower, so the problem is definitely too many chunk updates.

sp614x commented 5 years ago

You are testing with Fabric. Can you repeat the test with OptiFine standalone (no Fabric)?

OS-Void commented 5 years ago

You are testing with Fabric. Can you repeat the test with OptiFine standalone (no Fabric)?

Optifine by itself.

Biome Blend 15x15 2019-07-02_10 06 43

Biome Blend 5x5 2019-07-02_10 08 26

Biome Blend OFF 2019-07-02_10 10 19

I did some further testing and found something interesting. So this is on a Realm Server (So not running on my PC), and Realms are capped at 9 Render Distance (As of this date), so I got my game set to "9" to prevent any extra work-load if that's even a thing, but for some reason, if I change my render distance for example to 10 or above, the "Chunk Updates" go down drastically.

Render Distance 9 (Biome Blend 15x15) 2019-07-02_10 12 59

Render Distance 14 (Biome Blend 15x15) 2019-07-02_10 14 25

Even just Distance 10 instead of 14 works, as long as its above "9" (Server cap). But as show above, Render 9 went from 499 Chunk Updates, to 174 by increasing the Render Distance to 14.

sp614x commented 5 years ago

Can you post the world ZIP or only the problematic part of it?

OS-Void commented 5 years ago

Had to get a third party program to prune the world, since I had the world pre-generated and it was over 2GBs.

Here's the DL link: https://mega.nz/#!cPxVmaRR!5FU0ZOOYsxSgSlmy_6NKWL3PUYRkfTESyoLkgnN7Joc

it also includes my options and optionsof.txt

Use the minecart thats doing circles, it crosses at the point where 4 chunks meet, and use those settings.

OS-Void commented 5 years ago

Any updates on this?

Focusz commented 5 years ago

This bug can be fixed yet?