Q: What is the #1 cause of Minecraft lag? A: Chunk updates.
This mod optimizes how chunks are stored on the disk, meaning pauses to load or save a chunk as you move around a world become much shorter and less noticeable.
The improvement is most noticeable on systems with slow disks, such as laptops. I have also had reports that it decreases memory usage of SMP servers.
Highlights:
[*:38q1rrtm]Speed. Less jerkiness as you move around. Load, save, and delete worlds faster.
[*:38q1rrtm]Backwards compatible. Old worlds load and are converted on-the-fly to the region format.
[*:38q1rrtm]Backup friendly. The number of files decreases by 500-1000x, so compressing an entire world is much faster.
Back up your saves directory. I'm pretty sure it won't break anything, but you don't want to lose any of your work.
Instructions:
1) Locate your minecraft.jar file. On Windows, it's in %APPDATA%/.minecraft/bin
2) Create a backup of minecraft.jar
3) Open minecraft.jar in an archive editor (WinRar/7-Zip/etc) 4) Delete the META-INF folder.
5) Copy the files from the downloaded zip file into the jar file (overwriting nk.class).
6) Run Minecraft and test!
Server instructions: Do the same thing on minecraft_server.jar, but don't delete the META-INF folder, and use the mcregion server download.
To put all the old chunks into region files, do something like this:
Technical details: 90% of chunks are smaller than 4KB, and 99% are smaller than 8KB. This stores them efficiently in a single file. For a more complete description, see viewtopic.php?f=25&t=120160&p=1803041#p1803041
NOTES:
This will make a new folder "regions/" in your world directory, containing the new chunk clusters. This folder can be safely deleted if you want to revert. Any changes made to the world while using this mod will be lost, but your inventory and position will persist.
CHANGELOG:
v5 2011.01.06: Directly use Deflate streams instead of GZIP for improved speed.
v4 2011.01.02: SMP support, offline conversion utility.
v3 2010.12.30: Fix deleting worlds with regions
v2 2010.12.30:
- Fix saving and misc other bugs
- Don't use memory mapped files
- Debug output
v1 2010.12.29: First version
If you find this mod helpful, a donation towards further optimizations and my college expenses would be appreciated.
Someone needs to propose this to Notch as a way to improve performance. Unfortunately, no one with a brain is going to want to make their Minecraft maps potentially unreadable for the future in case this mod doesn't get updated quickly after every patch.
Someone needs to propose this to Notch as a way to improve performance. Unfortunately, no one with a brain is going to want to make their Minecraft maps potentially unreadable for the future in case this mod doesn't get updated quickly after every patch.
Luckily, the format is really simple, so conversions in either direction are easy.
I'm working on a standalone utility to do conversions to address those concerns.
Thanks to you i can play minecraft again, dunno why but 5 days my minecraft started to get a lot of lag (even on tiny, 15 fps when i used to have 120), NOW I HAVE 50 FPS! (on my big city) when i play new worlds i have around 130 FPS
U ROCK! just wanted to know, are you going to update this mod in the future? to make it better so we can have even get more fps and other things?
Omg... I just noticed... After 1 hour of playing... That this doesn't work! My game now doesn't save map! The only thing that gets save is inventory... Yea great...
FYI, Cartographer doesn't like this mod. Added it, didn't really notice a difference in speed, still getting 13 fps on my laptop. Tried cartographer, it freaks out. I removed the mod and cartographer worked again.
In retrospect, the fact that it's causing the game to not save means that creeper that snuck up on me in my mine won't leave a lasting impression. Always gotta look for the positive side...
Rollback Post to RevisionRollBack
Quote from googie2149 »
Seriously, what is with the maturity of this forum?
It's stuck back at indev. Nobody felt like updating it.
----
Quote from Duba »
Well, I think doing anything except standing barefisted on top of a mob spawner with no torches makes you a *****.
FYI, Cartographer doesn't like this mod. Added it, didn't really notice a difference in speed, still getting 13 fps on my laptop. Tried cartographer, it freaks out. I removed the mod and cartographer worked again.
In retrospect, the fact that it's causing the game to not save means that creeper that snuck up on me in my mine won't leave a lasting impression. Always gotta look for the positive side...
You won't notice much of a speed difference at first when you're loading a world saved in the normal way. What OS are you using? Did you exit Minecraft normally?
So what does this mod do exactly?
Provide the game with more smoother framerate and less lag?
And wheres the download link o_O
Hopefully, although it might not be noticeable if your computer is fast already. Speedups are of course constrained by Amdahl's law.
The download link is removed until I fix a really stupid bug.
Erm.. whos Amdahl lol xD?
And my computer is generally fast but my graphics card isn't up to par exactly.
My graphics card is some "Intel(R) G33/G31 Express Chipset Family' ****..
And i'm not using any sort of special mods right now besides some texture packs that aren't HD.
And seriously i can't take this lag anymore i don't understand why the **** this keeps happening.
There are certain places in the game where the game runs seamlessly yet when im burrowed inside a cave or something, the framerate drops like nuts.
FYI, Cartographer doesn't like this mod. Added it, didn't really notice a difference in speed, still getting 13 fps on my laptop. Tried cartographer, it freaks out. I removed the mod and cartographer worked again.
In retrospect, the fact that it's causing the game to not save means that creeper that snuck up on me in my mine won't leave a lasting impression. Always gotta look for the positive side...
You won't notice much of a speed difference at first when you're loading a world saved in the normal way. What OS are you using? Did you exit Minecraft normally?
I'm on an i3 Win7 x64 Laptop. Yeah, I left Minecraft like normal (save and quit), but I don't recall it saying "saving chunks" when it exited. Also, I think the /region folder is screwing up Cartograph, but don't quote me on that, I know **** for programming.
Rollback Post to RevisionRollBack
Quote from googie2149 »
Seriously, what is with the maturity of this forum?
It's stuck back at indev. Nobody felt like updating it.
----
Quote from Duba »
Well, I think doing anything except standing barefisted on top of a mob spawner with no torches makes you a *****.
FYI, Cartographer doesn't like this mod. Added it, didn't really notice a difference in speed, still getting 13 fps on my laptop. Tried cartographer, it freaks out. I removed the mod and cartographer worked again.
In retrospect, the fact that it's causing the game to not save means that creeper that snuck up on me in my mine won't leave a lasting impression. Always gotta look for the positive side...
You won't notice much of a speed difference at first when you're loading a world saved in the normal way. What OS are you using? Did you exit Minecraft normally?
I'm on an i3 Win7 x64 Laptop. Yeah, I left Minecraft like normal (save and quit), but I don't recall it saying "saving chunks" when it exited. Also, I think the /region folder is screwing up Cartograph, but don't quote me on that, I know **** for programming.
Cartograph is probably screwing up because the region files end in ".dat". I changed it to ".data" to hopefully break fewer tools. Of course, none of the current cartography tools know how to handle region files.
A: Chunk updates.
This mod optimizes how chunks are stored on the disk, meaning pauses to load or save a chunk as you move around a world become much shorter and less noticeable.
The improvement is most noticeable on systems with slow disks, such as laptops. I have also had reports that it decreases memory usage of SMP servers.
Highlights:
[*:38q1rrtm]Speed. Less jerkiness as you move around. Load, save, and delete worlds faster.
[*:38q1rrtm]Backwards compatible. Old worlds load and are converted on-the-fly to the region format.
[*:38q1rrtm]Backup friendly. The number of files decreases by 500-1000x, so compressing an entire world is much faster.
Download:
Client: http://mod.ifies.com/f/110114/mcregion_v5_client_1.2_01.zip
Server: http://mod.ifies.com/f/110114/mcregion_v5_server_1.2_01.zip
Conversion utility: http://mod.ifies.com/f/110106/RegionTool.jar This will let you convert your saves back to the old chunk format if an update comes out. It also lets you batch-convert a world if you have a lot of chunks and want to make sure they're all stored in region files. Normally, the conversion is done automatically in the background.
Source code: This is public domain. http://mod.ifies.com/f/110106/RegionTool_source.zip
Back up your saves directory. I'm pretty sure it won't break anything, but you don't want to lose any of your work.
Instructions:
1) Locate your minecraft.jar file. On Windows, it's in %APPDATA%/.minecraft/bin
2) Create a backup of minecraft.jar
3) Open minecraft.jar in an archive editor (WinRar/7-Zip/etc)
4) Delete the META-INF folder.
5) Copy the files from the downloaded zip file into the jar file (overwriting nk.class).
6) Run Minecraft and test!
Server instructions: Do the same thing on minecraft_server.jar, but don't delete the META-INF folder, and use the mcregion server download.
To put all the old chunks into region files, do something like this:
To extract all the chunks from the region files, do something like this:
Technical details: 90% of chunks are smaller than 4KB, and 99% are smaller than 8KB. This stores them efficiently in a single file. For a more complete description, see viewtopic.php?f=25&t=120160&p=1803041#p1803041
NOTES:
This will make a new folder "regions/" in your world directory, containing the new chunk clusters. This folder can be safely deleted if you want to revert. Any changes made to the world while using this mod will be lost, but your inventory and position will persist.
CHANGELOG:
v5 2011.01.06: Directly use Deflate streams instead of GZIP for improved speed.
v4 2011.01.02: SMP support, offline conversion utility.
v3 2010.12.30: Fix deleting worlds with regions
v2 2010.12.30:
- Fix saving and misc other bugs
- Don't use memory mapped files
- Debug output
v1 2010.12.29: First version
If you find this mod helpful, a donation towards further optimizations and my college expenses would be appreciated.
Thanks man, you just made my game run 2x faster.
I'm gonna test it right now.
Luckily, the format is really simple, so conversions in either direction are easy.
I'm working on a standalone utility to do conversions to address those concerns.
Thanks to you i can play minecraft again, dunno why but 5 days my minecraft started to get a lot of lag (even on tiny, 15 fps when i used to have 120), NOW I HAVE 50 FPS! (on my big city) when i play new worlds i have around 130 FPS
U ROCK! just wanted to know, are you going to update this mod in the future? to make it better so we can have even get more fps and other things?
please reply and u rock
peace out :smile.gif:
mod is great but this bug sucks
In retrospect, the fact that it's causing the game to not save means that creeper that snuck up on me in my mine won't leave a lasting impression. Always gotta look for the positive side...
It's stuck back at indev. Nobody felt like updating it.
----
You won't notice much of a speed difference at first when you're loading a world saved in the normal way. What OS are you using? Did you exit Minecraft normally?
I have an idea on what the problem is and how to fix it.
Could you upload a region/ directory that you get as output?
im using windows 7
Provide the game with more smoother framerate and less lag?
And wheres the download link o_O
Hopefully, although it might not be noticeable if your computer is fast already. Speedups are of course constrained by Amdahl's law.
The download link is removed until I fix a really stupid bug.
Erm.. whos Amdahl lol xD?
And my computer is generally fast but my graphics card isn't up to par exactly.
My graphics card is some "Intel(R) G33/G31 Express Chipset Family' ****..
And i'm not using any sort of special mods right now besides some texture packs that aren't HD.
And seriously i can't take this lag anymore i don't understand why the **** this keeps happening.
There are certain places in the game where the game runs seamlessly yet when im burrowed inside a cave or something, the framerate drops like nuts.
I'm on an i3 Win7 x64 Laptop. Yeah, I left Minecraft like normal (save and quit), but I don't recall it saying "saving chunks" when it exited. Also, I think the /region folder is screwing up Cartograph, but don't quote me on that, I know **** for programming.
It's stuck back at indev. Nobody felt like updating it.
----
Cartograph is probably screwing up because the region files end in ".dat". I changed it to ".data" to hopefully break fewer tools. Of course, none of the current cartography tools know how to handle region files.