Forums › English Language Forums › General › General Discussion

Search

Performance tweaks for linux?

8 replies [Last post]
Thu, 05/30/2013 - 14:15
Redblades's picture
Redblades

Performance tweaking for Ubuntu 12.04 that worked for me

1-Install java 64 bit. Available at the java website and on ubuntu software center.
2-Open the spiral knights desktop icon (spiralknights.desktop) with a text editing software.
3-Change the "Exec=/javafolderpath"
4-go to /home, press ctrl+h
5-find /.getdown folder. go in, and go in spiral folder
6-create new file "empty document"
7-name it extra.txt
8-Paste the following inside:

-Xverify:none
-Dsun.java2d.accthreshold=0
-XX:LargePageSizeInBytes=8m
-XX:+AggressiveOpts
-XX:ReservedCodeCacheSize=128m
-XX:CompileThreshold=1800
-server
-Xincgc
-XX:+UseParNewGC
-Xms1g
-Xmx1g

If you have a discreet (Nvidia) graphics cardhttp://bumblebee-project.org/install.html
2-Open the desktop icon "spiralknights.desktop" with a text editing software
3-Change "Exec=/javapath" to "Exec= optirun /javapath
Enjoy a smoother game!

(note: the reason you have to do all this is because linux does not support dynamic switching, which is switching between intergrated and discreet graphics card. you have to manually tell the OS to use it.)

Any contributions to be made will be greatly appreciated!

Thu, 05/30/2013 - 14:34
#1
Bleyken's picture
Bleyken

Coward....

Thu, 05/30/2013 - 14:48
#2
Our-Little-Ajo
Contri

Staph

Leave mayor league LD player alone

Fri, 05/31/2013 - 05:49
#3
Stelli's picture
Stelli
i tried ubuntu for a while on

i tried ubuntu for a while on my notebook but gave up after a week.

I'm using an NVIDIA GT650M and the display driver does not seem to apply the NVIDIA OPTIMUS technology properly.

It makes my system fricking overheat just from using facebook and checking emails.

Any suggestions? Or will the simpler solution be just to stick with Windows.

Fri, 05/31/2013 - 06:14
#4
Redblades's picture
Redblades
-

First of all, you wouldn't need a nvidia graphics card for web browsing. I run the optirun command with video editing software, recording software, steam games, and spiral knights.
Have you downloaded the proprietary drivers? download the nvidia-common packages from the synaptic package manager.
Also, optirun is not the fastest/most efficient way to use your nvidia card. try primusrun (just change all your optirun commands to primusrun)
instructions on getting primusrun are here. (obviously you don't need to install steam unless your account is linked to steam)
to run steam with your graphics card, just open a terminal and type "primusrun steam" or add primusrun to your shortcut command (right click, properties, command, add primusrun on front) ex. "primsurun /home/steam/whatever/path".
to run just a single steam game with your nvidia card (for example tf2):

Select a game - that you want to run using your discrete Nvidia card - from the Library page of the Steam client, right-click, and select Properties. Click the SET LAUNCH OPTIONS... button and specify primusrun %command% for the command line. Save your changes.This method allows you to pick when the discrete NVidia GPU should be used on a per-game basis.

Stelli, I'm curious. when I boot up, sometimes it is booted to a black screen (only happens with dedicated graphics card computers). This is easily remedied by pressing ctrl+alt+f1 to bring the terminal up, type your username/password and run "sudo service lightdm restart". Does this happen to you? if it does, how do you fix it?
(btw nice computer)

Fri, 05/31/2013 - 06:11
#5
Redblades's picture
Redblades
-

@contri you don't even lift
@feller thank you almighty lord feller for acknowledging my mayorness and leagueness of my LD skilz

Fri, 05/31/2013 - 08:47
#6
Quandasim's picture
Quandasim
thx for tips

hi thx for tips, but i use archlinux and i dont get it at all.
my spiral launch file dont have any line with exec word

there is no .getdown folder in my home, only spiral folder

and in my home spiral folder there is not another spiral folder so i dont know where shal i create the extra.txt file

do i need these tweaks? i already run sk at full speed (i have nvidia 550ti )

Stelli :
i dont use optimus so i dont have acuratte instructions, but nvidia introduced patrial optimus support in driver version 319.17, so maybe u can try it again.

sorry for my bad english

Fri, 05/31/2013 - 19:34
#7
Redblades's picture
Redblades
-

@quandasim
I'm not sure about archlinux. I have nvidia 550 too, but linux will not by default use the discreet GPU (nvidia card) unless you specify it to. You tell it to use the discreet graphics card by using the optirun/primusrun command.

Okay to modify the spiralknights.desktop shortcut, open a text editing software (NOT libreoffice/open office, but leafpad, gedit, etc..)
Open to desktop/spiralknights.desktop
it should show this:
[Desktop Entry]
Name=Spiral Knights
Exec=/opt/java/64/jre1.7.0_21/bin/java -jar getdown-pro.jar .
Path=/home/testing/.getdown/spiral
Terminal=false
MultipleArgs=false
Type=Application
Categories=Application;
Icon=/home/testing/.getdown/spiral/rsrc/ui/icon/icon_32.png

Change the line with "Exec=/javapath" to "Exec=primusrun /javapath"

"in my home spiral folder there is not another spiral folder"
That's the folder you're looking for mate :) Create the extra.txt file there.

Sat, 06/01/2013 - 07:52
#8
Warranty-Is-Voided's picture
Warranty-Is-Voided
Strange

SK works fine on my 9-year old Sager laptop (Linux Mint 14).

Powered by Drupal, an open source content management system