The biggest criticism of Minecraft is its system requirements, but those requirements are not the fault of Minecraft. Even my 2ghz 1GB ram laptop can run it smoothly with a batch file.
Reddit user tagnuts came up with a batch file, basically a script which is used to perform certain actions, that disables multiple problems with Java. Java, though compatible with all major operating systems, performs very poorly, hangs, lags, and is prone to freezing up completely if a lot of things happen at once.
The script here at pastebin disables some of Java’s native background functions and replaces them with different ones in order to improve performance and kill off the lag spikes that hit anyone not running a top of the line computer.
To turn this into a batch file, follow these simple instructions.
1: Go to the folder the Minecraft launcher is in, and create a Notepad file. It must be Notepad, nothing else.
2: Copy and paste the bottom line of the Pastebin I just linked, or from right here:
java -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=10 -jar minecraft.exe
3: Once that’s put in, go to file, save as, and select All Files. Name the file anything you want, but make sure that it ends with ‘.bat’.
You’ll know if you have done it right if the icon changes to a pair of cogs on a sheet of paper. Doubleclick that, wait for the launcher, and enjoy the sharp increase in improvement. A command prompt will flash for a brief moment as it executes the script before the launcher appears, this is normal.
What this does on the backend is alter the settings of Java’s garbage collector’s mess to something much more optimized. Java likes to stop the process it’s running to do garbage collections, which is unacceptable for a game like Minecraft.