Open Terrain Generator (OTG)

Open Terrain Generator (OTG)

10M Downloads

[1.12.2] Server lag spikes

KorDum opened this issue ยท 8 comments

commented
[18:02:00] [LagSpikeProfiler/INFO] [TickProfiler]: 
The server appears to have lag spiked.
Last tick 0.20284538s ago."Server thread" RUNNABLE
        at com.pg85.otg.WorldSession.GetSpawnersForChunk(WorldSession.java:123)
        at com.pg85.otg.forge.events.ServerEventListener.findChunksForSpawning(ServerEventListener.java:166)
        at com.pg85.otg.forge.events.ServerEventListener.onServerTick(ServerEventListener.java:618)
        at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_318_ServerEventListener_onServerTick_ServerTickEvent.invoke(.dynamic)
        at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
        at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:179)
        at net.minecraftforge.fml.common.FMLCommonHandler.onPostServerTick(FMLCommonHandler.java:264)
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:710)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524)
        at java.lang.Thread.run(Thread.java:748)

commented

Hey, thanks for reporting this, that's helpful information. I'll see if I can improve this for the next version.

commented

Thanks! I love your generator!

commented

Could you try this and tell me if it fixes the problem? Thanks!
OTG 1.12.2 v4 - Particles.zip

commented

Thanks!
I installed this version on my server and sent it to all players.
I'll be back later after analyzing the work of the that fixes.

commented
Last tick 0.20723236s ago."Server thread" RUNNABLE
        at net.minecraft.world.World.func_175668_a(World.java:239)
        at net.minecraft.world.World.func_175667_e(World.java:234)
        at net.minecraft.world.World.getBiomeForCoordsBody(World.java:153)
        at com.pg85.otg.forge.generator.OTGChunkGenerator.func_177458_a(OTGChunkGenerator.java:274)
        at net.minecraft.world.gen.ChunkProviderServer.func_177458_a(ChunkProviderServer.java:301)
        at net.minecraft.world.WorldServer.func_175734_a(WorldServer.java:244)
        at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:127)
        at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)
        at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:754)
        at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396)
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524)
        at java.lang.Thread.run(Thread.java:748)

It's appears only once when player join into game. I think you should not worry about that?
Temp result: 3 players - everything works well.

commented

5 players - OK, without spikes from OTG particles or spawner.

commented

I can say that there were no lags. Thanks!

commented

Awesome, thanks for reporting :)