After a few minutes of playing modded Minecraft at 70+ FPS, multiple lag spikes ensue. Eventually it gets so bad it freezes every 10 seconds. The game is unplayable. I know it’s not due to any specific mods as I tested out all of them.[/p]
Optifine lagometer shows that the lag is due to memory dumps. How do I fix this?[/p]
Additional info provided upon request.[/p]
I have tried allocating everything between 4 and 8 gigabytes. Nothing holds back the lag spikes.[/p]
Render distance is 8 and auto save is at 30 minutes in optifine.[/p]
Sorry to post this here as I do not know if this is an appropriate place, but I have put this message everywhere I could think of with no reply. Recently I have started modding on my new computer, and everything was going great. That is until recently, when my game started crashing on launch.I removed all mods one by one until I found out that Optifine was the cause. It was working earlier, so I do not what happened. I have tried 4 different versions of forge and 5 different versions of Optifine on Minecraft 1.12.2.
I consider Optifine a necessity, so this has been pretty frustrating to say the least. Crash Report:
WARNING: coremods are present:
Contact their authors BEFORE contacting forge
// Surprise! Haha. Well, this is awkward.
Time: 3/3/19 1:57 PM
Description: Exception ticking world
java.lang.NoSuchMethodError: net.minecraft.entity.EntityLiving$SpawnPlacementType.canSpawnAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
at net.minecraft.world.WorldEntitySpawner.func_180267_a(WorldEntitySpawner.java:226)
at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:135)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)
at WorldServerOF.func_72835_b(WorldServerOF.java:37)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:239)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:745)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Server thread
Stacktrace:
at net.minecraft.world.WorldEntitySpawner.func_180267_a(WorldEntitySpawner.java:226)
at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:135)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)
at WorldServerOF.func_72835_b(WorldServerOF.java:37)
-- Affected level --
Details:
Level name: New World-
All players: 1 total; [EntityPlayerMP['ScabbersStories'/11, l='New World-', x=109.50, y=64.00, z=581.50]]
Chunk stats: ServerChunkCache: 1135 Drop: 0
Level seed: 3133518929786696195
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options: 3;minecraft:bedrock,3minecraft:stone,52minecraft:sandstone,8*minecraft:sand;2;village,biome_1,decoration,stronghold,mineshaft,dungeon
Level spawn location: World: (104,4,583), Chunk: (at 8,0,7 in 6,36; contains blocks 96,0,576 to 111,255,591), Region: (0,1; contains chunks 0,32 to 31,63, blocks 0,0,512 to 511,255,1023)
Level time: 20 game time, 20 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 115242 (now: false), thunder time: 124054 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:239)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:745)
It helped enough. I couldn't use your specific files but I was able to recreate approximately what you have. I have tested and confirmed with Optifine 1.12.2 HD U E1 that in 1.12.2 biome specific mob switching works BUT you can no longer use numeric IDs to reference the biomes. It sucks but like I said in my first post, I we all had to do it when updating our packs. I'm not sure if you can use numeric IDs for modded biomes (since I don't pay modded) but if you have entity switching working in any of those I would say those are okay. In the example I packaged all of my zombies are using the correct skins except for in the Cold Taiga biome which I referenced using the numeric ID rather than the game name. Just for the sake of being thorough I included a text document that show the correct syntax for each biome name in 1.12.2 since they didn't show that on the wiki. Hope it helps.
Unfortunately, that version of Optifine crashes instantly when launched. I've used multiple versions of forge and it still does not work. I used the version of Optifine that I was using before and I got the same problem as the original post.
Hope this helps. If it does not I will go back to my Mac and make the file there. I have successfully done this before, but I was an idiot and deleted all the files.
I don't think this possible, but I think it would be a really cool idea to make this work with the upcoming "better villagers mod" from the What If series.
I'm trying to make a whole resource pack of biome specific mobs. I know that random mobs (the thing that makes this work) is working because my camouflage creeper pack is working correctly with all biomes. I coded the zombie file the same way and it is not working. The forest zombie is working but the desert, plains, etc, never works.[/p]
Here's the code[/p]
skins.1=2[/p]
biomes.1=47 52 54 57 60 62 67 71 74 80 82 83 88 93 96 4 18 132 27 28 155 156 29 157 5 19 133 32 33 160 161 34[/p]
skins.2=3[/p]
biomes.2=2 17 130 94 87 78[/p]
The numbers represent vanilla biomes AND biomes o plenty. The first rule set is for forests (working) the second is for desert (not working).[/p]
0
I have tried allocating everything between 4 and 8 gigabytes. Nothing holds back the lag spikes.[/p]
Render distance is 8 and auto save is at 30 minutes in optifine.[/p]
1
I have solved the problem, my Forge version of one version off. Thanks everyone
0
Sorry to post this here as I do not know if this is an appropriate place, but I have put this message everywhere I could think of with no reply. Recently I have started modding on my new computer, and everything was going great. That is until recently, when my game started crashing on launch.I removed all mods one by one until I found out that Optifine was the cause. It was working earlier, so I do not what happened. I have tried 4 different versions of forge and 5 different versions of Optifine on Minecraft 1.12.2.
I consider Optifine a necessity, so this has been pretty frustrating to say the least. Crash Report:
WARNING: coremods are present:
Contact their authors BEFORE contacting forge
// Surprise! Haha. Well, this is awkward.
Time: 3/3/19 1:57 PM
Description: Exception ticking world
java.lang.NoSuchMethodError: net.minecraft.entity.EntityLiving$SpawnPlacementType.canSpawnAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
at net.minecraft.world.WorldEntitySpawner.func_180267_a(WorldEntitySpawner.java:226)
at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:135)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)
at WorldServerOF.func_72835_b(WorldServerOF.java:37)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:239)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:745)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Server thread
Stacktrace:
at net.minecraft.world.WorldEntitySpawner.func_180267_a(WorldEntitySpawner.java:226)
at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:135)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)
at WorldServerOF.func_72835_b(WorldServerOF.java:37)
-- Affected level --
Details:
Level name: New World-
All players: 1 total; [EntityPlayerMP['ScabbersStories'/11, l='New World-', x=109.50, y=64.00, z=581.50]]
Chunk stats: ServerChunkCache: 1135 Drop: 0
Level seed: 3133518929786696195
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options: 3;minecraft:bedrock,3minecraft:stone,52minecraft:sandstone,8*minecraft:sand;2;village,biome_1,decoration,stronghold,mineshaft,dungeon
Level spawn location: World: (104,4,583), Chunk: (at 8,0,7 in 6,36; contains blocks 96,0,576 to 111,255,591), Region: (0,1; contains chunks 0,32 to 31,63, blocks 0,0,512 to 511,255,1023)
Level time: 20 game time, 20 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 115242 (now: false), thunder time: 124054 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:239)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:745)
-- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 208121248 bytes (198 MB) / 671088640 bytes (640 MB) up to 2147483648 bytes (2048 MB)
JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.42 Powered by Forge 14.23.5.2796 Optifine OptiFine_1.12.2_HD_U_C5 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
0
Unfortunately, that version of Optifine crashes instantly when launched. I've used multiple versions of forge and it still does not work. I used the version of Optifine that I was using before and I got the same problem as the original post.
0
Thanks man, guess it's time to get to work.
0
Hope this helps. If it does not I will go back to my Mac and make the file there. I have successfully done this before, but I was an idiot and deleted all the files.
0
Optifine?
0
I don't think this possible, but I think it would be a really cool idea to make this work with the upcoming "better villagers mod" from the What If series.
0
Here's the code[/p] skins.1=2[/p] biomes.1=47 52 54 57 60 62 67 71 74 80 82 83 88 93 96 4 18 132 27 28 155 156 29 157 5 19 133 32 33 160 161 34[/p]
skins.2=3[/p] biomes.2=2 17 130 94 87 78[/p]
The numbers represent vanilla biomes AND biomes o plenty. The first rule set is for forests (working) the second is for desert (not working).[/p]