Does anyone have any tips on how to reduce lag spikes? Specifically in the nether. I've gotten like 3 lag spikes ever on the overworld, so it's not really an issue up there. I already tried using optifine and using pure vanilla minecraft to no avail. I believe optifine did help, but I still get a reasonable amount of lag spikes in the nether either way. I have good/adequate FPS the whole time (approximately 50 FPS), including the moment before and after a lag spike. The lag spikes only last like 1 second at most, but happen frequently. If anyone has another lag spike reducing mod/program in mind, i'm all ears for that!
More info:
In the overworld, the 3 or so lag spikes that I have got were longer lasting. One of them might have lasted 30 seconds. In that time, I could still move and such, but nothing else was moving and I couldn't mine blocks or whatnot. It occurred during a battle with lots of snow golems and enemy mobs. Not sure if this little paragraph is helpful at all, but hopefully it is!
Specs:
Specs: Minecraft 1.6.2, mac book air early 2014, 8gb ram (1 gb allocated to minecraft. Allocating 2gb seemed to make no difference), Intel HD Graphics 5000 1536 MB, Java Version 8 Update 25, os x maverick. (I'm not able to upgrade the computer's hardware like the ram and such)
How frequently do they occur? Every X seconds? Or every X minutes?
Does decreasing render distance fix it?
They don't occur at set intervals. If i'm running in a straight line they occur perhaps every ~22 seconds, if i'm flying they can occur from any where from every ~6s to ~20s.
Decreasing the render distance helps very slightly, if at all. When I put my settings all the way down, it helps by say 1s. For example, if it's every 25s, it would happen every 26s. If I put my settings up high (far rendering distance, smooth lighting max, all animation etc) it happens more frequently, but I haven't tested high settings very much because then my frame rate drops too much regardless really lol.
I tried changing the ram, but i don't know suitable values to change it too. My random ram values didn't make a difference haha.
Press F3 and watch memory usage. Does the memory usage instantly drop just after the lag spike?
Made a video and played it on slow to figure it out. The 56s video experienced a grand total of 37 spikes. I'd say approximately half were big spikes that were very obvious, the other half were tinier ones that were still noticeable, but not terrible.
Memory usage dropped immediately following a spike: 8 times.
Memory usage did NOT drop immediately following: 29 times.
If you want, I can upload the video to youtube, but it'd most likely be at regular speed.
The Meaning of Life, the Universe, and Everything.
Location:
127.0.0.1
Join Date:
8/22/2012
Posts:
208
Location:
127.0.0.1
Minecraft:
Barteks2x
Xbox:
null
PSN:
null
Member Details
You can try disabling animations with optifine, it should help (but may look ugly).
I have noticed you said you use 1.6.2. Does it still occur with more recent Minecraft version? And what are your graphics settings (Advanced opengl, Render distance, particles, vsync)?
Other things you can try:
Allocate something between 256-512MB RAM to Minecraft (without mods it's usually enough). It may decrease the lag spikes a bit (or may change nothing).
FpsPlus mod (requires forge, compatible with optifine).
I tried disabling and lowering settings to minimum and it helped only slightly, if at all.
These are my settings: http://imgur.com/a/9QkAv#R59R4nv If you can't view the images, let me know.
I tried out 1.8 the other day. It seemed worse, but I didn't try it for long. Using the VBO option, it actually seemed to have improved. Maybe i'll mostly use the nether in 1.8? Otherwise, I essentially didn't try the other versions.
I allocate more memory by changing this right? http://i.imgur.com/R59R4nv.png Again, let me know if you can't view the image. I'll try playing around with the values.
Do you have any advice on installing the FPSplus mod? I literally tried ~4 times yesterday. Thanks so much for all the suggestions so far!
A quote from me on the thread, seeking installation help:
Quote from SirTulip»
I tried this mod with 1.6.2 and i couldn't open minecraft. Like the launcher opened, but when I pressed the play button it would begin loading then stop. I tried changing the jar file, using magic launcher and putting it into the mod folder. All of them were tried with that parameter code the author supplied.
I then tried following in 1.6.4 and then minecraft would load. It would load and not have the "FPSplus+!" logo as seen near the end of the video. Further more, if I tried loading a world, sometimes the game would get stuck on the generating terrain screen. If not that, it would get stuck on the terrain screen when I was exiting and would not exit properly.
You get them frequently when running in a line or flying?
This is obviously due to new chunks being loaded. Even if you lower your render distance running or flying quickly in a line still loads a lot of new chunks over time. The nether always tends to be worse due to the high amount of fire/lava which has popping and flickering animations that cause more lag also lighting can cause lag in the nether from the same blocks. Lowering particles to minimum or none should have helped some in the nether. You should definitely run on fast as well for performance. I've also found I need no more than about 6 chunks render in the nether. Usually any more and your view is blocked by the netherrack everywhere anyway (nether is like a massive cave basically the way it generates in code). Most ppl don't realize this and render way more than they can actually see in the nether.
I don't know if this was what you were getting at Barteks but the way to solve lag spikes that occur due to loading new chunks is to preallocate more RAM to Java before running minecraft. The lag spikes can occur due to minecraft needing to dynamically reallocate more RAM suddenly. This is why they recommend server owners to allocate about 10x as much as the server uses. Honestly, an air is a bit of a lightweight as well. Have you noticed that the spikes occur more frequently after long use of the machine or after it starts to get "warmer". I've noticed this using mac products.
To allocate more RAM for a server or single player use xms and xmx arguments on startup to give java more RAM for general use and heap (what it uses for chunks). This should help, especially if you notice your memory usage spike up dramatically around each lag spike (means you don't have enough memory allocated). Yes you use this in JVM arguments section. Here is a walk-through post:
Space Expedition to EPIC 204:Go on a Space-Age Adventure to visit and explore EPIC 204, a wacky world of dense asteroids and full of alien life! Experience Custom Seasons, Weather, Over 50 new creatures, Beautiful Biomes, Alien Ruins, Dungeons, and new space age tech crafting recipes!
You get them frequently when running in a line or flying?
Both. I did my testing that Barteksx2 and me talked about while flying. While running around and attempting to play mostly normal, I still get lag spikes. Not as many as flying, but still a lot more than just about anyone would like lol.
Thanks for the tips! I tried lowering settings to minimum and it helped only slightly, if at all.
I had a different mac a few years ago, and as you said performance plummeted once it got warm. This mac, the air, has had no heating problems thus far, including with minecraft luckily!
I'm not using a texture pack.
I took your guys advice on the RAM.
Here are my results: tl;dr MAX of 512M or great and a MIN of 1M seemed to have worked best. I was standing still and have yet to try a flying/running/jogging test.
[I Stood still in the nether on a pillar for 3 minutes with the crosshair at the tip of a torch in the distance, peaceful mode, with mouse disconnected. I used the lagometer to help. It represents spike in various colors and I recorded how many occurred.]
MAX 1g MIN 1g: = 1.05 spikes / 10s = 1 spike / 9.47s
white spike 7
green spike 12
red spike 0
MAX 512m MIN 512m: = 1.89 spikes / 10 s = 1 spike / 5.29 s
white 13
green 21
red 0
jvm arguments box unchecked: = 0.11 spikes / 10 s = 1 spike / 90 s
white 1
green 1
red 0
1g 128m (default jvm value): = 0.06 spikes / 10 s = 1 spike / 180 s
white 0
green 1
red 0
//had a few tiny spikes
1g 1 m: = 0 spikes / 10 s ( )
white 0
green 0
red 0
512m 1m: = 0.833 spikes / 10 s = 1 spike / 12 s
white 6
green 8
red 1
//some program started auto updating in the background so basically ignore this one >_>
512m 1m: = 0 spikes / 10 s
white 0
green 0
red 0
2g 1m: = 0 spikes / 10 s
white 0
green 0
red 0
2g 2g: = 0.5 spikes / 10 s = 1 spike / 20 s
white 2
green 6
red 1
//minecraft used 100% memory, then drop to 10% memory then repeated
Does anyone have any tips on how to reduce lag spikes? Specifically in the nether. I've gotten like 3 lag spikes ever on the overworld, so it's not really an issue up there. I already tried using optifine and using pure vanilla minecraft to no avail. I believe optifine did help, but I still get a reasonable amount of lag spikes in the nether either way. I have good/adequate FPS the whole time (approximately 50 FPS), including the moment before and after a lag spike. The lag spikes only last like 1 second at most, but happen frequently. If anyone has another lag spike reducing mod/program in mind, i'm all ears for that!
More info:
Thanks for the help!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDoes decreasing render distance fix it?
Cubic chunks discord server
They don't occur at set intervals. If i'm running in a straight line they occur perhaps every ~22 seconds, if i'm flying they can occur from any where from every ~6s to ~20s.
Decreasing the render distance helps very slightly, if at all. When I put my settings all the way down, it helps by say 1s. For example, if it's every 25s, it would happen every 26s. If I put my settings up high (far rendering distance, smooth lighting max, all animation etc) it happens more frequently, but I haven't tested high settings very much because then my frame rate drops too much regardless really lol.
I tried changing the ram, but i don't know suitable values to change it too. My random ram values didn't make a difference haha.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCubic chunks discord server
Made a video and played it on slow to figure it out. The 56s video experienced a grand total of 37 spikes. I'd say approximately half were big spikes that were very obvious, the other half were tinier ones that were still noticeable, but not terrible.
Memory usage dropped immediately following a spike: 8 times.
Memory usage did NOT drop immediately following: 29 times.
If you want, I can upload the video to youtube, but it'd most likely be at regular speed.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI have noticed you said you use 1.6.2. Does it still occur with more recent Minecraft version? And what are your graphics settings (Advanced opengl, Render distance, particles, vsync)?
Other things you can try:
Allocate something between 256-512MB RAM to Minecraft (without mods it's usually enough). It may decrease the lag spikes a bit (or may change nothing).
FpsPlus mod (requires forge, compatible with optifine).
Cubic chunks discord server
I tried disabling and lowering settings to minimum and it helped only slightly, if at all.
These are my settings: http://imgur.com/a/9QkAv#R59R4nv If you can't view the images, let me know.
I tried out 1.8 the other day. It seemed worse, but I didn't try it for long. Using the VBO option, it actually seemed to have improved. Maybe i'll mostly use the nether in 1.8? Otherwise, I essentially didn't try the other versions.
I allocate more memory by changing this right? http://i.imgur.com/R59R4nv.png Again, let me know if you can't view the image. I'll try playing around with the values.
Do you have any advice on installing the FPSplus mod? I literally tried ~4 times yesterday. Thanks so much for all the suggestions so far!
A quote from me on the thread, seeking installation help:
Quote from SirTulip »
I tried this mod with 1.6.2 and i couldn't open minecraft. Like the launcher opened, but when I pressed the play button it would begin loading then stop. I tried changing the jar file, using magic launcher and putting it into the mod folder. All of them were tried with that parameter code the author supplied.
I then tried following in 1.6.4 and then minecraft would load. It would load and not have the "FPSplus+!" logo as seen near the end of the video. Further more, if I tried loading a world, sometimes the game would get stuck on the generating terrain screen. If not that, it would get stuck on the terrain screen when I was exiting and would not exit properly.
Any suggestions?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThis is obviously due to new chunks being loaded. Even if you lower your render distance running or flying quickly in a line still loads a lot of new chunks over time. The nether always tends to be worse due to the high amount of fire/lava which has popping and flickering animations that cause more lag also lighting can cause lag in the nether from the same blocks. Lowering particles to minimum or none should have helped some in the nether. You should definitely run on fast as well for performance. I've also found I need no more than about 6 chunks render in the nether. Usually any more and your view is blocked by the netherrack everywhere anyway (nether is like a massive cave basically the way it generates in code). Most ppl don't realize this and render way more than they can actually see in the nether.
I don't know if this was what you were getting at Barteks but the way to solve lag spikes that occur due to loading new chunks is to preallocate more RAM to Java before running minecraft. The lag spikes can occur due to minecraft needing to dynamically reallocate more RAM suddenly. This is why they recommend server owners to allocate about 10x as much as the server uses. Honestly, an air is a bit of a lightweight as well. Have you noticed that the spikes occur more frequently after long use of the machine or after it starts to get "warmer". I've noticed this using mac products.
To allocate more RAM for a server or single player use xms and xmx arguments on startup to give java more RAM for general use and heap (what it uses for chunks). This should help, especially if you notice your memory usage spike up dramatically around each lag spike (means you don't have enough memory allocated). Yes you use this in JVM arguments section. Here is a walk-through post:
http://www.minecraftforum.net/forums/support/unmodified-minecraft-client/tutorials-and-faqs/1871637-tutorial-allocate-more-memory-for-minecraft
One last thought: are you using a high-res texture pack?
Download and play my new Survival Map!
Space Expedition to EPIC 204: Go on a Space-Age Adventure to visit and explore EPIC 204, a wacky world of dense asteroids and full of alien life! Experience Custom Seasons, Weather, Over 50 new creatures, Beautiful Biomes, Alien Ruins, Dungeons, and new space age tech crafting recipes!
Both. I did my testing that Barteksx2 and me talked about while flying. While running around and attempting to play mostly normal, I still get lag spikes. Not as many as flying, but still a lot more than just about anyone would like lol.
Thanks for the tips!
I had a different mac a few years ago, and as you said performance plummeted once it got warm. This mac, the air, has had no heating problems thus far, including with minecraft luckily!
I'm not using a texture pack.
I took your guys advice on the RAM.
Here are my results: tl;dr MAX of 512M or great and a MIN of 1M seemed to have worked best. I was standing still and have yet to try a flying/running/jogging test.
[I Stood still in the nether on a pillar for 3 minutes with the crosshair at the tip of a torch in the distance, peaceful mode, with mouse disconnected. I used the lagometer to help. It represents spike in various colors and I recorded how many occurred.]
white spike 7
- green spike 12
- red spike 0
white 13
- green 21
- red 0
white 1
- green 1
- red 0
white 0
- green 1
- red 0
//had a few tiny spikes
white 0
- green 0
- red 0
white 6
- green 8
- red 1
//some program started auto updating in the background so basically ignore this one >_>
white 0
- green 0
- red 0
white 0
- green 0
- red 0
white 2
- green 6
- red 1
//minecraft used 100% memory, then drop to 10% memory then repeated
white 1
- green 0
- red 0
- // did this one again just to see if they would vary crazily.