Forums › English Language Forums › General › General Discussion

Search

Spiral Knights Performance QUICKFix <reduce and eliminate lag>

7 replies [Last post]
Fri, 08/15/2014 - 19:47
Klipwc's picture
Klipwc

Was brought to my attention that people have not done memory allocation for their Java. Looking at you Luigi!!!
If you ever wondered why the heck couldnt you play High with a monster gaming rig or why you lag on low. Please look below - . -
EDIT:
SEE 6TH COMMENT FOR SIMPLIFIED VERSION

This is a quickfix for your spiral knights. If you stutter due to skill spam or players joining the game, this will help.
First let me be clear. This will in absolutely NO way solve latency lag. That is a server problem not a memory allocation problem. It will however prevent you... or at least reduce the chances of you rubberbanding into lava-pits every time someone uses a Polaris or a pet skill.

What this does:
Spiral Knights only allocates 512MB of memory to your game. This is absolutely ridiculous since even the most dumb-down computer has 2gb...mostly. So what you are going to do is to allocate more memory to your game. The following is a step by step guide to what you need to do.

Here it is, Step by Step:
Go to control panel, look for JAVA, Click on the Java tab, click View.
You should see one line here, if you see more than that means multiple instances of Java has been installed and you really ought to rectify that
Under Runtime Parameters. Add this line: -Xincgc -Xmx4096M
What this does is allocate 4GB worth of RAM to java programs, you can either increase or decrease the number depending on your RAM size. so if you only want 2gb, change 4096 to 2046, or just 2000 (dosent really matter) 4gb is more than sufficient.

REMINDER: COPY OUT YOUR java_vm FILE BEFORE YOU DO ANYTHING.

Now you are done with your memory allocation, but spiral knights uses its own java (ask OOO dont ask me)
You need to copy out your jreX (X for java version, mostly 7) and replace your java_vm file with jreX and rename to java_vm in your spiral knights game folder.

You can find jreX at either program files(x86) or program files, the former is 32bit java
java_vm is located in YOUR GAME FOLDER. Whether it be in steam or non-steam. If its in steam its located in \Steam\SteamApps\common\Spiral Knights. If you are using the non-steam, right click your spiral knights shortcut, click properties, click open file location.

For people using 64 bits java, please remember that your 64 bits java is located under program files, not program files(x86). SK uses 32 bit by default. And yes 64 bit will improve performance further.

If you are still having problems with lag, bring up your task manager and check how much memory SK is using, Enter a map (FSC or roar twins works well) and see if the memory used increases beyond 512MB if it does and you are still lagging, its either latency, or see below 2. If its still below 512, something went wrong and the memory allocation isnt been applied, 2. might also help.

P.s: i dont normally read the forums, contact me in-game if you need help instead... if i am free i just might.

Possible problems: (ignore if its working)
1. You BSODed
Idiot you set way too much RAM and your SK overloaded your computer... (this will not happen unless you only have like.. 1gb of ram or 2gb or you are running ALOT of programs at once)

2. You still lag alot
Try looking up memory allocation for windows, if you use seperate hard drives (like an SSD and a HD) you need to manually set an amount.
here.
http://windows.microsoft.com/en-sg/windows/change-virtual-memory-size#1T...

3. Nothing happened:
Try downloading Jre6, might work...

4. I dont understand your instructions
Contact me ign, if your question hasnt been repeated a thousand times i will help you.

Fri, 08/15/2014 - 20:27
#1
Xaphak's picture
Xaphak
Good stuff, but shouldn't

Good stuff, but shouldn't this be in the Technical Section? People having trouble are more likely to look there.

Fri, 08/15/2014 - 20:30
#2
Klipwc's picture
Klipwc
because more people read

because more people read general then they do technical

Fri, 08/15/2014 - 20:35
#3
Xaphak's picture
Xaphak
@Klipwc

Very well, what he said.

Sat, 08/16/2014 - 00:10
#4
Bopp's picture
Bopp
anyone interested

Anyone interested in this thread will probably be interested in all of these other performance-tweaking threads too. Some of them are more extensive than this one, with illuminating arguments about pros and cons.

Google performance site:forums.spiralknights.com

Sat, 08/16/2014 - 00:21
#5
Klipwc's picture
Klipwc
This is the fastest hack and

This is the fastest hack and slash job you can get. Its the simplest most dumbed down one you could do without having to create text files or things like that. Just add in one line of words, and copy out your java file. Its meant for lazy people who want to fix their SK but dont wanna go through alot of trouble to do it.

Sat, 08/16/2014 - 00:38
#6
Klipwc's picture
Klipwc
Let me just simplify things

Let me just simplify things since people are asking,
Go to control panel,
look for JAVA,
Click on the Java tab,
click View.
Under Runtime Parameters. Add this line: -Xincgc -Xmx4096M
Locate jreX (X is your java version, should be 7), it should be in C:program files for 64bit and program files(x86) for 32
Copy jreX
Open a new folder
Locate game folder
Paste jreX here
CUT java_vm out to desktop, this serves as backup
Rename jreX to java_vm

Boot up SK, Profit

Sat, 08/16/2014 - 06:29
#7
Pepperonius's picture
Pepperonius
extra.txt

the thing is, that extra file also allows your PC to use a dual core processor efficiently in java64bit. Tweak looks fine for 32bit, but at 64 bit you can really (and I mean really) increase the performance. Your way is simple, granted, but then again, Thrillhaus' method adds literally one step. Right click in SK folder (same place you are for the java_vm), create text doc, then copy paste thrills settings.

For reference:

http://forums.spiralknights.com/en/node/62691

Powered by Drupal, an open source content management system