I just moved over from Windows 7 to Ubuntu, and have been learning the OS now for about a day. How do I use the following for Minecraft?
java -Xmx1024M -Xms1024M -XX:+UseFastAccessorMethods -XX:+AggressiveOpts -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:+UseParallelGC -XX:UseSSE=3 -XX:ParallelGCThreads=(Number of processor cores you have, for me it's 2) -jar /media/storage/minecraft.jar
Im just curious so I can use this. Ive been able to get the texture packs and mods working, and the game is actually running A LOT better than when I had Windows installed.
Tad bit of a noob, sorry, I was able to do every step except the last one because i have no idea what packages i need to download and how to link them to my minecraft. any help?
So long after this thread has become outdated here's some info i've collected:
[I'm not responsible for anything that happens to your comp if you try these methods! back up your .minecraft folder, minecraft.jar, your minecraft launcher(if you use one), and maybe your entire system just to be safe ]
this is what i use to launch my minecraft on ubuntu 10.10:(note that you'll need to edit < > values for yourself)(i still need to test my script with the options listed in the op as some of them i don't use and they may be helpful
#---------------------------------------------------------------------------------------------------------
#!/bin/sh
base="/home/<user>/games/minecraft" #<--this is just where i keep my launcher .jar yours may be different
cd "$base";java -Xmx1024M -Xms512M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=<# of cpus you have> -XX:+AggressiveOpts -jar minecraft.jar net.minecraft.LauncherFrame
#(using the $base variable is helpful cause it sets the 'working directory' then runs the program.)
#you may edit the memory values to more or less but as optifine states in its op minecraft/java isn't meant to or smart enough to utilize extreme values so listing any more than 1gb may actually hurt.(see optifine page)
#I have multiple partitions/HDDs that i use for storage on my linux build, you should use the native partition/HDD for everything minecraft/java for best performance.
#---------------------------------------------------------------------------------------------------------
Oh and to make that work(for noobs)
in nautilus(window where you look at your files/folders) right-click > create document > cut/paste script into the document(edit it as you need to) > save as: play_minecraft.sh > close the text editor > right-click/properties the file you just made and under permission tab check : allow execute file as program.
now you can just double click(left) the file and select run in terminal or just run
also get these mods:
http://www.minecraft...-and-much-more/
optifine(the new better optimine+optifog) smooth is my choice, multi threaded is amazing(you'll load chunks so fast w/o hurting your fps) but i don't recomend it for laptops as it causes mine to overheat.
http://www.minecraft...lag-fix-client/
this, while meant for the nether, also helps the overworld by limiting lighting updates per game tick. this one really helps, get it.
http://www.minecraft...te-aka-fpsplus/ http://progfish.com/p/mods/fps.htm -(better version by fishtaco himself)
this one is more for crappy video cards(like onboard intel stuff) if you have a 'nicer' video card this might actually hurt instead of help.it changes the render sin/cos mathematical methods to more sensible versions.
im running ubuntu10.10 on a 2.1 ghz machine with a nvidia video card.(I don't use fps++{'better' vers}).
I have updated my video drivers manually and installed sun java6u33 instead of openJDK/java. I also am running 50 60+ mods(mostly little tweaks(note that anything that adds AI or checks the chunks for world building causes lagg)).
at tiny render distance & with low optifine video settings I can get this:
the red spike at the end is when i alt-tabbed and took the screenie. note that it was already back to 100 fps when it took the screenie though. this is after a few full bar readouts also so the game had been running for a bit and with the laggy-debug screen active.
with lower settings i can get 130+. & at normal render distance it drops to ~20-40 fps. I tend to play at Short+16 at around 60fps or short+32 at 50fps. If anyone knows how to help optimize further please let me know.
This is crazy, maybe some weird improvement have happened in the past year, but on Windows 8 I got about 25-30 fps on Normal render distance and no fancy graphics or smooth lighting. (with Optifine). I recently installed Ubuntu 13.04 as my main and only OS on my PC, and I get 60+ fps on MAX settings without Optifine. I had no Idea why but I'm fine with it?
it didint work i tried ass many as i could and none worked java -Xmx1024 -Xms1024 -XX:+UseFastAccessorMethods -XX:+AggressiveOpts -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:+UseParallelGC -XX:UseSSE=3 -XX:ParallelGCThreads=1 -jar /desktop/minecraft.jar
Error: Unable to access jarfile /media/storage/minecraft.jar
java -Dsun.java3d.opengl=true -Xmx1024m -Xms512m -cp minecraft.jar net.minecraft.LauncherFrame
Error: Could not find or load main class net.minecraft.LauncherFrame
sudo chmod 755 minecraft.shchmod: cannot access `minecraft.sh': No such file or directory
ok for the sudo pidof java i type it in a nothing comes up?????
Ok,i have no idea whatsoever why this happens,but if i play minecraft in windowed mode(cause I can't seem to change to fullscreen,or else my minecraft window goes blank/seethrough.),if i press 3 buttons,like shift/ctrl,+w+a/d,i go to the menu.If i move my cursor while pressing 2 buttons,i go to the menu cause my cursor gets out of the window.I have no idea what my comp. specs are, since i got this computer/laptop from my uncle.
I have switched to Ubuntu 14.04 from Windows XP 1 month ago, because i have that "A WINDOWS file is corrupt/missing message",And i have 30-180+ FPS on minecraft with optifine and normal 8 chunk loading when i had Windows XP.
Linux is NOT Unix. Linux is a kernel, and GNU is a replication of Unix. Nearly every existing Linux distro (Ubuntu, Fedora, openSUSE, etc.) is a GNU/Linux distro. Linux is the kernel, the thing that manages your hardware and executes executable files. GNU means GNU's Not Unix: it's a project to create an operating system that is just like what Unix. GNU is still not finished as they have not made a kernel, but that is where Linux comes in. Anyway, the reason for Linux and GNU's existence is that Unix is proprietary, as many people (Linux Torvalds, Richard Stallman, and me with the exception of Minecraft) refuse to use proprietary software. Saying that Linux is Unix doesn't make sense, for one, but two, also insults Linux and GNU. Do you even know what Unix is? Also, an Apple Macintosh is a computer (that is proprietary!), whereas Mac OS X is the operating system. Whether you are using an Apple Macintosh or a PC (regardless of operating system) does not make a difference in how the software runs: it all depends on the operating system. Many people run GNU/Linux type operating systems on their Apple Macintosh computers and delete Mac OS X altogether. Do you know a single thing about computers? Also, "mac" is supposed to be capitalized as it is a registered trademark of Apple, Inc.
Looks like much of the later parts of the instruction is out of date or useless. However the main point... get your OpenGL running well... is however still the most sensible one, regardless of what system you have.
I just moved over from Windows 7 to Ubuntu, and have been learning the OS now for about a day. How do I use the following for Minecraft?
java -Xmx1024M -Xms1024M -XX:+UseFastAccessorMethods -XX:+AggressiveOpts -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:+UseParallelGC -XX:UseSSE=3 -XX:ParallelGCThreads=(Number of processor cores you have, for me it's 2) -jar /media/storage/minecraft.jar
Im just curious so I can use this. Ive been able to get the texture packs and mods working, and the game is actually running A LOT better than when I had Windows installed.
Please help this new Linux user.
Thanks!
Also another thing that that should help your optimization and fix other misc things in the game is updating your LWJGL(minecraft's libraries).
Topic on that with a really nice script: http://www.minecraftforum.net/topic/463570-update-lwjglsh-updates-your-lwjgl-for-linux-and-mac/
[I'm not responsible for anything that happens to your comp if you try these methods! back up your .minecraft folder, minecraft.jar, your minecraft launcher(if you use one), and maybe your entire system just to be safe ]
this is what i use to launch my minecraft on ubuntu 10.10:(note that you'll need to edit < > values for yourself)(i still need to test my script with the options listed in the op as some of them i don't use and they may be helpful
#!/bin/sh
base="/home/<user>/games/minecraft" #<--this is just where i keep my launcher .jar yours may be different
cd "$base";java -Xmx1024M -Xms512M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=<# of cpus you have> -XX:+AggressiveOpts -jar minecraft.jar net.minecraft.LauncherFrame
#(using the $base variable is helpful cause it sets the 'working directory' then runs the program.)
#you may edit the memory values to more or less but as optifine states in its op minecraft/java isn't meant to or smart enough to utilize extreme values so listing any more than 1gb may actually hurt.(see optifine page)
#I have multiple partitions/HDDs that i use for storage on my linux build, you should use the native partition/HDD for everything minecraft/java for best performance.
#---------------------------------------------------------------------------------------------------------
now you can just double click(left) the file and select run in terminal or just run
also get these mods:
http://www.minecraft...-and-much-more/
optifine(the new better optimine+optifog) smooth is my choice, multi threaded is amazing(you'll load chunks so fast w/o hurting your fps) but i don't recomend it for laptops as it causes mine to overheat.
http://www.minecraft...lag-fix-client/
this, while meant for the nether, also helps the overworld by limiting lighting updates per game tick. this one really helps, get it.
http://www.minecraft...te-aka-fpsplus/http://progfish.com/p/mods/fps.htm -(better version by fishtaco himself)
this one is more for crappy video cards(like onboard intel stuff)
if you have a 'nicer' video card this might actually hurt instead of help.it changes the render sin/cos mathematical methods to more sensible versions.im running ubuntu10.10 on a 2.1 ghz machine with a nvidia video card.(I do
n'tuse fps++{'better' vers}).I have updated my video drivers manually and installed sun java6u33 instead of openJDK/java. I also am running
5060+ mods(mostly little tweaks(note that anything that adds AI or checks the chunks for world building causes lagg)).at tiny render distance & with low optifine video settings I can get this:
the red spike at the end is when i alt-tabbed and took the screenie. note that it was already back to 100 fps when it took the screenie though. this is after a few full bar readouts also so the game had been running for a bit and with the laggy-debug screen active.
with lower settings i can get 130+. & at normal render distance it drops to ~20-40 fps. I tend to play at Short+16 at around 60fps or short+32 at 50fps. If anyone knows how to help optimize further please let me know.
Youtuber <3
Channel - https://www.youtube.com/user/FoxyDrewdidMinecraft - 9,200 subs!
java -Xmx1024 -Xms1024 -XX:+UseFastAccessorMethods -XX:+AggressiveOpts -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:+UseParallelGC -XX:UseSSE=3 -XX:ParallelGCThreads=1 -jar /desktop/minecraft.jar
Error: Unable to access jarfile /media/storage/minecraft.jar
java -Dsun.java3d.opengl=true -Xmx1024m -Xms512m -cp minecraft.jar net.minecraft.LauncherFrame
Error: Could not find or load main class net.minecraft.LauncherFrame
sudo chmod 755 minecraft.shchmod: cannot access `minecraft.sh': No such file or directory
ok for the sudo pidof java i type it in a nothing comes up?????
-SheepGaming
I have switched to Ubuntu 14.04 from Windows XP 1 month ago, because i have that "A WINDOWS file is corrupt/missing message",And i have 30-180+ FPS on minecraft with optifine and normal 8 chunk loading when i had Windows XP.