Drillgon200 / Hbm-s-Nuclear-Tech-GIT

My fork of the HBM's nuclear tech mod.
47 stars 19 forks source link

[1.12.2] Chunk unloading problem #173

Open DNIWE041 opened 2 years ago

DNIWE041 commented 2 years ago

If im installing HBM mod, chunks in my game does not unload normally. Its causing big lags when game try to unload chunks (btw game can't do it): "[16:31:08] [Server thread/WARN] [net.minecraft.server.MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 26134ms behind, skipping 522 tick(s)" This problem also exists on forge / sponge servers. Nothing helps to unload these chunks (including plugins for a server like ClearLagg and using /unloadchunks command) except restarting the game or server. Also game crashes with no crash-report if i try to exit when i have about 3-5k "garbage" unloaded chunks. I delete all my mods and try to repeat, yes its a HBM mod problem. How its looks with chicken chunk viewer: No HBM mod: NoHBM With HBM mod: WithHBM Logs with HBM and chicken chunks installed. New world and game restarted: latest.log debug.log

Im using: HBM v 1.6.4a-Gv1 for 1.12.2 ChickenChunks_1.12_2.4.0.70_universal (only for test with chunk viewer) CodeChickenLib_1.12.2_3.2.3.358_universal (only for test with chunk viewer) Forge-Optifine 14.23.5.2855 (Optifine HD_U_G5) (also have this problem with NO Optifine) Java 8 upd 291 64 bit. All JVM flags (also in log):10 total; -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -XX:ConcGCThreads=4 -XX:ParallelGCThreads=16 -Xmx8192M -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump

System: 10700k, 32gb ram (8 gb for game), 1080ti, ssd.

Server start.bat if you care: java -Dfile.encoding=utf-8 -Xincgc -server -Xmx6G -Xms2G -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -jar forge-1.12.2-14.23.5.2855.jar nogui

I thought it was because im used t-launcher (yes its 2 t-launchers in internet but im using original "legacy" one) (not official minecraft launcher), but i still have this problem on server. And sorry for not good english k?

TheOriginalGolem commented 2 years ago

Did you change anything in hbm's config file? If so, please send it here.

Because to me it looks like an insane amount of structures are being generated at once. Which shouldn't happen.

DNIWE041 commented 2 years ago

Did you change anything in hbm's config file? If so, please send it here.

No, it's a default, auto-generated config.

Because to me it looks like an insane amount of structures are being generated at once. Which shouldn't happen.

Yep. Few tests and i found the problem: gas (one of two) Im set this in config to 0:

# Spawns a gas bubble every nTH chunk
I:2.17_gasBubbleSpawnRate=0

# Spawns an explosive gas bubble every nTH chunk
I:2.19_explosiveBubbleSpawnRate=0

And this solves the problem.

Still in log (but with no lags, so i don't care about this):

[17:02:27] [Server thread/WARN] [FML]: HBM's Nuclear Tech Mod loaded a new chunk [-21, 29] in dimension 0 (overworld) while populating chunk [-21, 28], causing cascading worldgen lag.
[17:02:27] [Server thread/WARN] [FML]: Please report this to the mod's issue tracker. This log can be disabled in the Forge config.

image

Small red square it's a loaded spawn

Drillgon200 commented 2 years ago

Gases cause a ton of lag issues right now. It's an easy fix though, just put them to sleep when they're first spawned and only have them start moving when they get a block update.