Nukepowered / GregTech4

A port of GregTech 4 to Minecraft 1.7.10 with optimization on most processes, fixed networking and rendering.
GNU General Public License v3.0
29 stars 17 forks source link

World generation of granite hangs the internal server #165

Open Ayliroe opened 2 years ago

Ayliroe commented 2 years ago

Issue: Vanilla Minecraft worlgen is normally able to keep up with a gravisuite at full boost. However, when GT4 is present (and especially in singleplayer), the internal server hangs for 10 seconds or more every dozen chunks.

When this happens, mobs stop moving and huge unloaded chunk walls occur: image

This is most probably due to the internal server having to generate huge volumes of granite/basalt. The problem disappears or is greatly reduced when editing WorldGeneration.cfg and dividing by 4 the size of overworld granite layers.

Reproduction steps:

Occurs with and without optimization mods like FoamFix/Fastcraft/BetterFps. The issue compounds substantially when using a lot of worldgen mods, making moving around really tedious even at slow speeds. Could be related to this: https://www.reddit.com/r/feedthebeast/comments/5x0twz/investigating_extreme_worldgen_lag/

Forge 10.13.4.1614, industrialcraft-2-2.2.827-experimental, gregtechmod-v416.40 i7-7700HQ, GeForce GTX 1060, 16GB of RAM

Cheers!

meowNIman commented 2 years ago

i would not say that vanila can keep up with ctrl gravi anyway i dont see it as a problem and i think DnK will agree with me

Ayliroe commented 2 years ago

I'm playing with Better Dungeons, ExtraBiomesXL, Forestry, Railcraft, Roguelike Dungeons, Traincraft, etc, which all add to the overworld worldgen, and the moment I add GT it becomes practically unplayable. I get freezes/huge internal server lags for 30s+ every 4 chunks I move around, often even by foot. I've checked a dozen times to be sure and this is clearly from basalt gen. The point isn't that the gravisuite is too fast, it's that it really lags out in modpack.^^ (nonetheless in vanilla+Optifine multi-core chunk loading I can roam around at lightspeeds without a hitch)

meowNIman commented 2 years ago

I'm playing with Better Dungeons, ExtraBiomesXL, Forestry, Railcraft, Roguelike Dungeons, Traincraft, etc, which all add to the

what u were saying only applys to new chunks being generated it does not effect already generated areas that much

ThePixelbrain commented 5 months ago

I can confirm this issue, the worldgen of GT4 is rather intensive. Profiling tools like Spark also point to this.

My workaround was to mostly disable GT4 worldgen and move it to COFH's worldgen config, as that one is much more performant. The LostEra modpack config might a good thing to copy and modify for your own purposes.

DrParadox7 commented 5 months ago

I can confirm this issue, the worldgen of GT4 is rather intensive. Profiling tools like Spark also point to this.

My workaround was to mostly disable GT4 worldgen and move it to COFH's worldgen config, as that one is much more performant. The LostEra modpack config might a good thing to copy and modify for your own purposes.

I endorse that. Just keep in mind you'd be missing out on the whole granite veins.