I have 4GB of RAM on my pc (LATITUDE D620 Dell Laptop) but my minecraft only runs at 20-35 fps on render distance short, and often has lag spikes lasting 1-3 seconds that goes down to 2-8 fps, with a 32x32 Texture Pack, I found out that you can allocate more RAM to minecraft specifically (not just java?) with a .bat file. I have found 2 different formats:
The first one does not open minecraft, and closes instantaneously. I included a pause command to see see the file before it closes and there is no message other than "press any key to continue", which closes the window.
The second one, also closes instantly, but with a pause command displays "The system cannot find the path specified". I know absolutely nothing about coding, so anyone who is willing to help, please be extremely detailed, to where an absolute noob could easily do it.
Please Note: My system includes only 4GB of RAM, if possible, I am willing to devote 3GB.
I am using Windows XP, so any instruction must be compatible
My APPDATA file is where it is by default, (to open must go to run and type %appdata%)
My minecraft.exe is on my desktop, and all other minecraft files in .minecraft which in appdate
And lastly, there is only one user on this computer (me) and the user name is "William"
If you need any other info please ask, i appreaciate all the help, thank you.
I don't see anything obviously wrong with either of those.
The first method should end with the exact path to the launcher on your PC and as webrosc says that would need to be in the same folder as the Java install. You could modify it to something like the following if you want the bat file on your desktop:
"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xmx2048 -Xms1024 -jar "C:\Users\William\Desktop\Minecraft.exe"
Again verify both paths to make sure they are accurate to your PC paths for the location of the java.exe file and the minecraft launcher.
Just to be clear, you're using notepad (not wordpad) and you're typing one of those in and then saving the file as a .bat file. (i.e. minecraft.bat)
Lastly I wouldn't recommend going over 2GB's to make sure you don't starve your OS.
I tried to use that, still just says cannot find path or whatever, whats the java.exe? and if you could, give a detailed set of instructions, as if im starting from scracth, if it would be easier to not have the minecraft on my desktop then i am flexible, i just want my minecraft to run faster haha
Okay I just realized you said you're running XP. That first path is the path to the java's .exe file. Just right click your start button in the bottom left, select 'explore' in the menu that pops up (second option from top). In the C: drive you should see a 'Program Files' folder, click the + sign beside it to open it up to see it's contents. Inside it you should see a 'Java' folder, click the + sign by it to open it up, then click on the 'bin' folder inside. To the right you will see all the files in the bin folder and they typically are in alphabetical order, scroll down to the 'J' files and look for a file titled javaw and it should have a java symbol icon. This is the javaw.exe launcher. Now at the top of that window is the path to the bin folder, click in the bar and it should highlight the path, press ctrl+c to copy the path. Then use ctrl+v to paste that path into the beginning of your bat file string, replacing the path you currently have there, then add \javaw.exe at the end of the path. Make sure it is surrounded by quotation marks. On my XP machine the path looks like this: "C:\Program Files\Java\jre7\bin\javaw.exe"
If you could, simply make your next post the correct format of what i posted above, it must be wrong in some way
Also: the "error" message now reads "C:\Program Files\Java\jre6\bin is not recognized as internal or external command, operable program, or batch file" And yes, i copy and pasted the path shown while in the bin folder.
I just realized that you say you have 4 GB of ram, however unless your XP is 64 bit it will only utilize 3GB of that ram. Allocating 2GB might not be a good idea in that case if your OS needs more than 1GB to run.
Odd, I was under the impression that the client install was a little different from that jar file which is meant to be used for a server setup. I think with the new 'merged' client though the difference is only what ports are open and listening to the internet.
javaw -Xmx2048m -Xms1024m -jar "C:\Users\William\Desktop\Minecraft.exe
"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xmx2048M -Xms2048M -cp Minecraft.exe net.minecraft.LauncherFrame
The first one does not open minecraft, and closes instantaneously. I included a pause command to see see the file before it closes and there is no message other than "press any key to continue", which closes the window.
The second one, also closes instantly, but with a pause command displays "The system cannot find the path specified". I know absolutely nothing about coding, so anyone who is willing to help, please be extremely detailed, to where an absolute noob could easily do it.
Please Note: My system includes only 4GB of RAM, if possible, I am willing to devote 3GB.
I am using Windows XP, so any instruction must be compatible
My APPDATA file is where it is by default, (to open must go to run and type %appdata%)
My minecraft.exe is on my desktop, and all other minecraft files in .minecraft which in appdate
And lastly, there is only one user on this computer (me) and the user name is "William"
If you need any other info please ask, i appreaciate all the help, thank you.
-
View User Profile
-
View Posts
-
Send Message
Moderatorthis will force it to wait on a keuy press before the window closes so you see the error.
the bat file your running should be in the same folder as the exe file.
and you need to make sure that javaw.exe is in your system path
The first method should end with the exact path to the launcher on your PC and as webrosc says that would need to be in the same folder as the Java install. You could modify it to something like the following if you want the bat file on your desktop:
"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xmx2048 -Xms1024 -jar "C:\Users\William\Desktop\Minecraft.exe"
Again verify both paths to make sure they are accurate to your PC paths for the location of the java.exe file and the minecraft launcher.
Just to be clear, you're using notepad (not wordpad) and you're typing one of those in and then saving the file as a .bat file. (i.e. minecraft.bat)
Lastly I wouldn't recommend going over 2GB's to make sure you don't starve your OS.
by c0yote
I tried it with terrible results. I gave my wife my glasses for a second, a creeper showed up and now my wife is pregnant.
Stupid 3D..
by c0yote
I tried it with terrible results. I gave my wife my glasses for a second, a creeper showed up and now my wife is pregnant.
Stupid 3D..
"C:\Program Files\Java\jre6\bin\javaw.exe" -Xmx2048M -Xms2048M -cp Minecraft.exe net.minecraft.LauncherFrame
If you could, simply make your next post the correct format of what i posted above, it must be wrong in some way
Also: the "error" message now reads "C:\Program Files\Java\jre6\bin is not recognized as internal or external command, operable program, or batch file" And yes, i copy and pasted the path shown while in the bin folder.
"C:\Program Files\Java\jre6\bin\javaw.exe" -Xmx2048M -Xms1024M -jar "C:\Users\William\Desktop\Minecraft.exe"
[edit]
I just realized that you say you have 4 GB of ram, however unless your XP is 64 bit it will only utilize 3GB of that ram. Allocating 2GB might not be a good idea in that case if your OS needs more than 1GB to run.
by c0yote
I tried it with terrible results. I gave my wife my glasses for a second, a creeper showed up and now my wife is pregnant.
Stupid 3D..
java -cp -Xmx2048M -Xms1024M minecraft.jar net.minecraft.LauncherFrame
with the minecraft.jar file downloaded from minecraft.net/download.jsp
That should work for you.
Odd, I was under the impression that the client install was a little different from that jar file which is meant to be used for a server setup. I think with the new 'merged' client though the difference is only what ports are open and listening to the internet.
by c0yote
I tried it with terrible results. I gave my wife my glasses for a second, a creeper showed up and now my wife is pregnant.
Stupid 3D..