I get the same thing and have your answer, though I don't know what to do about it other than quit and restart when it happens. It's isn't MC, exactly. It's Java garbage collection.
You play MC for awhile, and go into a jungle or perhaps traverse a LOT of area. Meanwhile, every entity MC must manage (growing vines, etc.) are created as Java objects. Eventually, Java runs out of memory and then starts to clean up unused objects, freezing for up to 30 seconds at a time.
The dead giveaway is if the lag occurs faster if you are in a jungle, and with Far render distance on.
I do wish someone would fix this somehow, but I can't imagine how, other than writing a new incremental garbage collection routine for Java.
Edit: more details at link below. I didn't realize there already was an incremental GC for Java - now I know why folks recommend a batch file to start java with the -Xincgc parameter! I'll have to give it a try. http://www.softwares...youwilleverneed
Edit again: I read the article in full - look at the graphs. -Xingc does NOTHING. However, "-XX:+UseParallelGC" seems to be the bomb. I'm going to test this tonight.
I get this too. Through trial and error I've discovered it is Java's garbage collection, and technically has nothing to do with Minecraft at all.
Things that cause it for me are travelling long distances through ordinary worlds, or hanging around in jungles with Far render distance. After a few minutes, I get lag spikes freezing me for up to 30 seconds at a time. Setting to Normal render distance helps, although once the freezes start the only solution is to quit MC entirely and restart, thus quitting and restarting Java as well.
It doesn't matter how much memory you launch Java with. If you render enough blocks in Minecraft, it fills Java's allocated space until it hits a ceiling and suddenly Java's garbatge collection routines kick in. Yes, it sucks.
As far as I know, the only solution is moving to a 64-bit operating system and the 64-bit version of Java.
Well, probably because they've been busy adding lots of other stuff.
It would be a good idea, IMO. Might help with chunk load lag. It can't be that dramatic a change (like on a par with merging SSP and SMP) because it was accomplished with a mod.
Mojang's already said they're not going to change the height of terrain generation anytime soon, so it's going to have to be a mod making your 1,000-block-high mountains. Would be cool though!
Unfortunately not. Having coloured windows is one of the most-requested features. Apparently the game does not support alpha transparency for blocks generally. Things like water which are partly transparent are handled by a special procedure, the same one that animates the water. For ordinary blocks, you can have solid, or completely clear, and that's it.
It'll happen eventually though, in some future update, and we will rejoice.
I really just wanted to be compensated for my time. I doubt the source code itself is worth that much. After reading through it again, I'm not sure it's worth $100, let alone 10g. There will be lots of "He wanted $10k for THAT!?!?" in the near future.
MCEdit's source code will be posted to http://github.com/codewarrior0/mcedit once I've finished cleaning my personal information and passwords out of it.
You rock, sir - and keep that donations link up. You got some moolah coming from me. :smile.gif:
EDIT: And... this is just a thought, but if you charged for MCEdit instead of asking for donations, you might have your new job. I’d pay at least 20 bucks for it, and I regret I haven’t donated until now.
I know you’re not interested in the game, but I’m not really interested in my job either... I do it because it pays the bills. :smile.gif: With literally millions of players, and MCEdit as the only feasible world editor right now, I have to imagine you would make a fortune!
In a newly created world, I'd like to get Minecraft to generate terrain for all chunks within a certain distance from the spawning point without having to travel around - say 100 x 100 square.
Maybe this is crazy but as it is now, I generate new worlds in creative and fly around until I've mapped enough to see if I like the terrain. I guess I'm trying to speed up that process - start a world, generate those chunks, have a look at the resulting map in Cartographer.
I am completely new to modding. I've used MCP to decompile and am poking around in WorldRenderer.java, although I don't know if that's where to start. Can anyone who is familiar with MC's code point me in the right direction? Is there an easier way to accomplish something like this?
Re-started my world with same seed a couple weeks ago to get jungles & snow. Mapped out about 1000 x 1000 squares. Now of course the abandoned mineshafts have changed and are way better. More changes will come.
It's hardly worth building right now, best to wait until the game's out of beta. Yay content! If only it had been completed before 1.0.
0
0
No.
0
0
You play MC for awhile, and go into a jungle or perhaps traverse a LOT of area. Meanwhile, every entity MC must manage (growing vines, etc.) are created as Java objects. Eventually, Java runs out of memory and then starts to clean up unused objects, freezing for up to 30 seconds at a time.
The dead giveaway is if the lag occurs faster if you are in a jungle, and with Far render distance on.
I do wish someone would fix this somehow, but I can't imagine how, other than writing a new incremental garbage collection routine for Java.
Edit: more details at link below. I didn't realize there already was an incremental GC for Java - now I know why folks recommend a batch file to start java with the -Xincgc parameter! I'll have to give it a try.
http://www.softwares...youwilleverneed
Edit again: I read the article in full - look at the graphs. -Xingc does NOTHING. However, "-XX:+UseParallelGC" seems to be the bomb. I'm going to test this tonight.
0
0
1
0 is survival, 1 is creative, 2 is adventure mode.
Cheers!
0
Things that cause it for me are travelling long distances through ordinary worlds, or hanging around in jungles with Far render distance. After a few minutes, I get lag spikes freezing me for up to 30 seconds at a time. Setting to Normal render distance helps, although once the freezes start the only solution is to quit MC entirely and restart, thus quitting and restarting Java as well.
It doesn't matter how much memory you launch Java with. If you render enough blocks in Minecraft, it fills Java's allocated space until it hits a ceiling and suddenly Java's garbatge collection routines kick in. Yes, it sucks.
As far as I know, the only solution is moving to a 64-bit operating system and the 64-bit version of Java.
0
It would be a good idea, IMO. Might help with chunk load lag. It can't be that dramatic a change (like on a par with merging SSP and SMP) because it was accomplished with a mod.
Mojang's already said they're not going to change the height of terrain generation anytime soon, so it's going to have to be a mod making your 1,000-block-high mountains. Would be cool though!
1
It'll happen eventually though, in some future update, and we will rejoice.
0
BIOME SIZE SLIDER IN GUI. Srsly.
1
You rock, sir - and keep that donations link up. You got some moolah coming from me. :smile.gif:
EDIT: And... this is just a thought, but if you charged for MCEdit instead of asking for donations, you might have your new job. I’d pay at least 20 bucks for it, and I regret I haven’t donated until now.
I know you’re not interested in the game, but I’m not really interested in my job either... I do it because it pays the bills. :smile.gif: With literally millions of players, and MCEdit as the only feasible world editor right now, I have to imagine you would make a fortune!
0
Maybe this is crazy but as it is now, I generate new worlds in creative and fly around until I've mapped enough to see if I like the terrain. I guess I'm trying to speed up that process - start a world, generate those chunks, have a look at the resulting map in Cartographer.
I am completely new to modding. I've used MCP to decompile and am poking around in WorldRenderer.java, although I don't know if that's where to start. Can anyone who is familiar with MC's code point me in the right direction? Is there an easier way to accomplish something like this?
Many thanks! :smile.gif:
0
Re-started my world with same seed a couple weeks ago to get jungles & snow. Mapped out about 1000 x 1000 squares. Now of course the abandoned mineshafts have changed and are way better. More changes will come.
It's hardly worth building right now, best to wait until the game's out of beta. Yay content! If only it had been completed before 1.0.
0