Spiral Knights

Spiral Knights

301 个评价
Improve In-Game Performance!
由 ZAMN 制作
With this guide, you should be able to increase your performance quite significantly in SK. We’ll do so by making it use 64-bit Java instead of 32-bit as well as adding some parameters to use more RAM and CPU power.
7
3
19
2
2
2
   
奖励
收藏
已收藏
取消收藏
Preparation
First off, you need to find out if you can actually run 64-bit applications as well as check how much RAM you have. While most PCs produced in the last ten years can run 64-bit, you might have installed a 32-bit operating system, which will prevent you from running 64-bit applications without reinstalling the operating system.

Open the start menu, right click “Computer” and press “Properties”. Here, you will find some information about your PC, including RAM and if your operating system installation is 32-bit or 64-bit. Take note of your RAM, as we’ll need to know how much you have later on.



If you are running a 32-bit system, you will not be able to run Spiral Knights on 64-bit Java and this guide is not for you.
Installing 64-bit Java
IMPORTANT! You will need to download from here! NOT from Java.com, RAR password: spiral
Windows[drive.google.com]
Linux[drive.google.com]
MacOS[drive.google.com]

Once it’s downloaded, you need to open your Spiral Knights installation folder. If you’re playing through Steam, this should be C:\Program Files (x86)\Steam\steamapps\common\Spiral Knights. If you’re playing the standalone version of the game, it should be C:\Program Files\Spiral Knights. You can open the folder through Steam by right clicking Spiral Knights in your library, opening Properties, going to the Local Files tab and clicking Browse local files…



In that directory, you’ll find a folder called java_vm. Rename it to java_vm_backup, in case we screw something up.



For Windows users: Go to Downloads folder and extract files from .rar archive we just downloaded (Java 8u251.rar). Now copy java_vm and extra.txt



Go back to SK installation directory and paste it in there. If you did everything correctly, Spiral Knights should be running on 64-bit Java!



If the game no longer boots, you probably didn’t follow the instructions properly, and you'll have to rename java_vm_backup folder back to java_vm in order to undo the recent changes.
Verifying that it worked
Checking if the 64-bit Java installation is quite easy. Just start Spiral Knights and open the Task Manager by pressing Ctrl+Shift+Esc. Open the processes tab and sort by memory usage. You should find a java.exe process that’s using a decent amount of RAM. If it says java.exe *32, Spiral Knights is still running on 32-bit. If it just says java.exe, you’ve succeeded!

extra.txt - more RAM and CPU usage
Next step is to make Spiral Knights make more use of your system. Go to your Spiral Knights installation folder and create a text file called extra.txt. Note that you’ll only have to name it extra if your system has extensions hidden. You can quickly see this by looking at digest.txt right above it. If it says digest.txt, create extra.txt. If it’s just digest, create just extra.

Open up the extra.txt and paste this:

-XX:+DisableExplicitGC -Xms512M -Xmx4096M -XX:+UseParallelGC -XX:+UseParallelOldGC

Depending on how much free RAM your system has
You can replace Xms and Xmx values
Here are some examples below:

16 GB RAM
-Xms512M -Xmx8192M

8 GB RAM
-Xms512M -Xmx4096M

4 GB RAM
-Xms512M -Xmx2048M

2 GB RAM
-Xms512M -Xmx1024M

An example of my extra.txt file:

-XX:+DisableExplicitGC -Xms512M -Xmx3072M -XX:+UseParallelGC -XX:+UseParallelOldGC

If you have less than 2GB RAM: Both Xms and Xmx should be 512M

The last two lines tells Spiral Knights to use several CPU cores for garbage collection.

Closing words
Thanks for reading! If you’d like to know more, you can take a look at this old thread.[forums.spiralknights.com]

Also bear in mind that if you’re playing on Steam and use its Verify integrity of game cache function, it will restore back to 32-bit Java, in which case you’ll need to do this over again.
Knight Launcher
If you can't make this work, download Knight Launcher[github.com] and extract .jar file into your game directory. You might want to configure some settings from KnightLauncher though!
Like setting your desired memory, by default it'll be set to 512MB



84 条留言
Z0k 9 月 27 日 下午 12:34 
nvm its seems for some odd reason game dont let me resize the borders after switching to windowed mode if i dont restart it again. weird. but thanks for the guide usually when i come back to SK i do this first to have improvement but it seems they also improve some of the game options too.
ZAMN  [作者] 9 月 27 日 下午 12:18 
not with extra, but there have to be workarounds
Z0k 9 月 27 日 下午 12:08 
Is there a command in the extra that let me set the custom size for the windowed mode? before i was able to set the size of the window mode by just moving the borders but now i cant.
ZAMN  [作者] 9 月 1 日 上午 1:21 
I recommend you download Knight Launcher, its an app that will automatically do it for you.
ZAMN  [作者] 9 月 1 日 上午 1:16 
That means you didn't follow any steps correctly, you probably downloaded wrong patch to wrong OS.
Leeloo 8 月 31 日 下午 2:33 
after following the steps of this guide the game refuses to launch with an invalid platform error
Battler809 8 月 29 日 上午 8:47 
Damn... I decided to return to Spiral Knights on a whim and I had issues loading into Haven. This guide saved me a massive headache. Thank you!
Aegalite 6 月 26 日 下午 5:30 
10/10 will knight again
mr man 5 月 25 日 下午 12:45 
New update seems to have reset the fix for me, plonked me back onto 32 bit. Works fine for me after doing the fix again.
ZAMN  [作者] 5 月 19 日 上午 3:23 
I highly recommend KnightLauncher to anyone that is confused or lazy. KL is a great little tool that automatically improves game performance!