For some reason, when I go to allocate more ram to minecraft, it has me set to 1GB. When I change it, it reverts back to this odd code that I had before I tried to change the amount of gigs dedicated.
and then right click somewhere like on your desktop and make a new txt document. Rename or saveas the file as a .bat instead of a .txt
Put this in the .bat file and use this to run it:
@echo off
set _JAVA_OPTIONS=-Xmx1G -Xms1G
java -jar "C:\users\YOURNAME\desktop\minecraft.jar"
PAUSE
So then use the .bat file to run minecraft instead of using the launcher. It should bring up a small command console window (if you know DOS, similar to that)
EDIT: Also if you want to change how many GBs of ram you want to give to minecraft, just change the "Xm(s)(x)1G to whatever you want. Make sure the G is capital though, use M for megabytes. So if you want 2 gigabytes for minecraft you would do
@echo off
set _JAVA_OPTIONS=-Xmx2G -Xms2G
java -jar "C:\users\YOURNAME\desktop\minecraft.jar"
PAUSE
or
@echo off
set _JAVA_OPTIONS=-Xmx2000M -Xms2000M
java -jar "C:\users\YOURNAME\desktop\minecraft.jar"
PAUSE
Code: -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
I have optifine and that's it mod wise. I also made sure I reinstalled java to 64 bit which my computer runs and still there was no change.
Help. Me.
Yes.
How do I do that?
and then right click somewhere like on your desktop and make a new txt document. Rename or saveas the file as a .bat instead of a .txt
Put this in the .bat file and use this to run it:
So then use the .bat file to run minecraft instead of using the launcher. It should bring up a small command console window (if you know DOS, similar to that)
EDIT: Also if you want to change how many GBs of ram you want to give to minecraft, just change the "Xm(s)(x)1G to whatever you want. Make sure the G is capital though, use M for megabytes. So if you want 2 gigabytes for minecraft you would do