How to make Minecraft Run better (reduce Lag) on your Pc

Hey guys, Red here, Just throwing something your way to help ease the frustration of seeing that “out of memory” screen or enduring hideous lag.

Firstly make sure you have the newest version of Java installed for your system (not your browser)
you can get this here: http://java.com/en/download/manual.jsp

Secondly guys, your going to want to head over to your control panel and find the java tab (it will be java 32 on a 32 bit system)

Go to the “java” tab and click view.

Now the next step depends on your individual computer; Press the windows key and R simultaneously to bring up the “run” window and type “dxdiag” this will run a direct x diagnostics test on your pc to bring up your system specifications.

What we’re looking for is “Memory XXXXMb RAM”

This XXXXMb RAM is the unit of cache your processor and system ram can hold at one time. RAM basically allows your computer to recall the same data again more quickly once its been loaded once. You can clearly see how allocating more of this to Minecraft can help with your speed.

return to your java window and in the “runtime parameters” box, enter “-XmsXXXXM -XmxXXXXM -jar”

The first figure being the minimum RAM for minecraft, the second the maximum. If for example your computer says you have 3072 ram then the second figure should be 3000, the first 2000. This is so that if you attempt to run other windows, your internet browser for example along side minecraft it has 1000MB RAM spare it can use.

In the case just mentioned the code for the runtime parameter box would read “-Xms2000M -Xmx3000M -jar”

If you need any help feel free to reply to this, or ammend it in anyway, just of course use courtesy and accredit me for the guide. Thanks fellow Gamers, good luck :stuck_out_tongue_winking_eye:

Peace out, Redxundead (Rob Lefevre)

Sipjca; “Also allow a 50% overhead on the ram allocated since I believe Java has a 50% overhead on anything that runs. Just experiment until the best results.”

Greatly appreciated man; I’m here to help.

This causes one more problem. If you try to run something else besides minecraft, it will lag horribly. Especially if you allocate all of your ram. And, I’m pretty sure most people here play in client and all have java installed so that part is clearly unnecessary. There used to be a post like this somewhere on the forums but it was never really read. So thanks for posting this so that some of the players that are less technologicly advanced can try memory allocation.

Hence why you have a minimum. Windows holds 20% of your CPU whenever most of your ram is used. when that 20% is used up, your ram use for Java applets reduces to the minimum :slight_smile: I’ve covered all bases here guys. :slight_smile: I’ve seen a few other attempts at performing some of this and they lack a minimum value, which as you suggest causes horrible lag. This method shouldn’t cause such issues. Thanks for the concern.

@Hard24get I added that link because most computers running windows seven download 32 bit java regardless of the OS type; this effects render distance and older versions of Open GL before 3.1. I appreciate your comments but i’m simply trying to cover all the bases :slight_smile:

I am unsure about this, but if you have multiple cores couldn’t you set minecraft to run off specific ones, then have other things run off the remaining ones while minecraft is running?

i3 processors have 2 cores, and 2 virtual ones I believe. I still lag at times xD

Well liam its also a laptop. On my 3 yr old desktop I don’t get any lag unless I start another ram intensive program like Photoshop.

Minecraft often only uses only one core at a time, but give a false task manager reading of the program using excess cores too. Limiting minecraft to one core whilst playing doesn’t seem to effect lag or fps at all (unless you have optifine MT installed.

The lag also depends on the graphics card however. not just ramm and cpu speeds/cores.
(mostly educated guesses =D)

Ima have to try this when i get stuck with my old laptop. :stuck_out_tongue:

yeah to run it multicore u need optifine multi core edition. It causes a lot of bug with new minecraft versions though, if it doesnt give u black screen that is. This is the best solution for lag atm, thanks guys. RedxUndead

I’m using optifine multicore at the moment, works fine for me?

thanks RedxUndead
i have downloaded it…
i’ll repost here if it work for not :smiley:

edit.
lol it failed my java is really wanting to be a pain >.<

Ima have to use this real soon, cuz my pc sucks compared to the mac i have now. :stuck_out_tongue:

wolf that’s because u need a 64 bit motherboard before u can run 64 bit java

…Motherboard has nothing to do with 64bit. CPU does a tiny bit, but mostly OS support. You have to have a 64bit of whatever OS. Generally used on computers with 4GB of RAM and higher.

Motherboard has everything to do with 64 bit OS support. :L needs to be a 64 bit motherboard to run a 64 bit OS.

There is no such thing. It has to support a 64bit CPU but that’s it. It depends on OS and CPU

gosh. Everyones getting different messages, i shall clarify, the cpu, being 64 bit compatible is only compatible with a motherboard that will incorporate a 64 bit cpu.

Which is almost exactly as I said. Zesty is pretty correct, as long as the socket fits the CPU and the CPU has support it will work. Though the MOST common problem is you don’t have a 64bit OS. CPU’s have all supported 64bit for a long time so unless its old thenyou are fine.

Sorry to get back on topic, but check if your OS is 32bit or 64 and go from there.