Join the ranks of the Spiral Knights. Stranded on an alien world. Steam Release Date, 14 June 2011 – 16:30:00 UTC (9 years ago). Store Asset Modification. Jun 14, 2011 Spiral Knights is a cooperative adventure in a persistent world with a focus on instant, fast-paced action. Arm yourself and join the ranks of the Spiral Knights; stranded on an alien world, they must explore the ever.
SK Performance Tweaking GuideA comprehensive guide on ricing up your Java client to increase framerate, reduce stutters, and improve gameplayThis is a guide I wrote for my guild that I have decided to make public for the benefit of the SK community. I do not pretend to be an expert in Java, and these suggestions are merely what I have found works through my own research and experimentation. Many of the ideas were borrowed from previous threads on the subject, and this is my attempt to distill the most useful tweaks into one comprehensive step-by-step guide.DISCLAIMER: I cannot guarantee that you will not encounter problems after doing the tweaks. Most people from my guild that have followed my instructions have had no issues, but I'm not making any assurances that everything will work for you. I also do not plan on offering any case-by-case technical support as I'm a busy guy and I've already laid everything out as foolproof as possible. Therefore, I advise you to only perform these tweaks if you are comfortable with them, and know how to restore any changes in case they don't work out for you.If you like my work here, I'd appreciate if you'd check out and lend your support if you like my ideas.
PC USERS(Mac users scroll down. Sorry, no Linux version)1. Using 64-bit JavaThis step will yield the most significant improvements and should be done for anyone running a 64-bit version of Windows.For Web Client Users:If you have 64-bit Java installed, Spiral Knights should automatically launch in 64-bit mode if you are running a 64-bit browser. Some browsers such as Firefox will default to 32-bit Java unless additional plugins for 64-bit Java are installed. The easiest way to launch in 64-bit mode without installing anything is to run SK using Internet Explorer (64-bit) which should come with all 64-bit versions of Windows.For Steam Users:Exit both Steam and SKNavigate to your SK folder (C:Program Files (x86)Steamsteamappscommonspiral knights)In this folder, there will be a folder named “javavm”; rename it to “javavmbackup”Navigate to your Java folder (C:Program FilesJava); make sure you are not in the (x86) folderIn this folder there will be a folder named either “jre6” or “jre7”; UPDATED: Copy the jre6 folder instead of jre7. I've received feedback of jre7 not working for some people. If you do not have jre6, download it.Navigate back to your SK folder and paste the jre6 folder; rename it to “javavm”In your SK folder create a file named “extra.txt”, we will come back to this later2.
Checking whether SK is running in 64-bit or 32-bit modeOpen your task manager and select the “processes” tab. Upon launching SK, a new instance of “java.exe” should appear. If “java.exe.32” appears instead, it means you are still running in 32-bit mode. You dun goofed. Recheck your work.3. Creating an “extra.txt” file for additional tweaksJava comes with various command line options that can alter the way it runs. We can set these options to run when SK starts by created an “extra.txt” file in the SK folder.For Web Client Users:Exit SKOpen your start menu and enter%appdata% at the bottom; hit enterYou will be brought to your UsersAppDataRoaming folderNavigate back to UsersAppData and double-click the “LocalLow” folder, then the “spiral” folder; this is your SK folderIn your SK folder create a file named “extra.txt”For Steam Users:If you read Part 1, you should already have done this.4.
Free unblocked games at school for kids, Play games that are not blocked by school, Addicting games online cool fun from unblocked games 66 Icy Tower - Unblocked Games 66 - Unblocked Games for School Search this site. Icy tower learn4good.
Allocating additional RAM for JavaSK by default allows itself to use up to 512mb of your system memory. Even the most modest machines will have much more RAM available to utilize.In your extra.txt file enter the following lines:-Xms##-Xmx##We will configure this option based on the amount of RAM you have installed:If you have 4GB of RAM or more, set the numbers to 3GIf you have 2GB of RAM installed, set the first value to 1G and the second value to 512MIf you have less than 2GB of RAM, ignore this step and buy a new computerThe values given here attempt to maximize the amount of RAM allocation, even if the game does not necessarily need so much. We are erring on the side of caution and assuming you play with all extraneous applications closed.5. Getting rid of stuttersIf you have a multicore processor, enter the following lines in your extra.txt file:-XX:+UseParallelGC-XX:+UseParallelOldGCIf you don't have a multicore processor then enter these lines instead:-XX:+UseConcMarkSweepGC-XX:+CMSIncrementalMode-XX:+ExplicitGCInvokesConcurrent6. Save your extra.txt file and enjoy smoother gameplay.
Using 64-bit JavaThis step will yield the most significant improvements and should be done for anyone running a 64-bit version of Mac OS. If you are a web client user, make sure you are running a 64-bit browser.Exit SK and/or SteamIn your Java Preferences, make sure the 64-bit version(s) of Java are at the topNavigate to your SK folder:Web Client Users: /Library/Application Support/spiral/Steam Users: /Library/Application Support/Steam/SteamApps/common/spiral knightsCreate a file in your SK folder named 'extra.txt'Enter the line '-d64' (no quotations) and save the file2. Checking whether SK is running in 64-bit or 32-bit modeOpen your Activity Monitor. Under the 'Kind' column for the process 'Spiral Knights' it should display Intel (64-bit). If it displays just 'Intel' you are in 32-bit mode. You dun goofed. Recheck your work.Web client users will have a process called 'Java Applet - www.spiralknights.com'; this is not the game process.3.
Allocating additional RAM for JavaSK by default allows itself to use up to 512mb of your system memory. Even the most modest machines will have much more RAM available to utilize.In your extra.txt file enter the following lines:-Xms##-Xmx##We will configure this option based on the amount of RAM you have installed:If you have 4GB of RAM or more, set the numbers to 3GIf you have 2GB of RAM installed, set the first value to 1G and the second value to 1536MIf you have less than 2GB of RAM, ignore this step and buy a new computerThe values given here attempt to maximize the amount of RAM allocation, even if the game does not necessarily need so much. We are erring on the side of caution and assuming you play with all extraneous applications closed.4. Getting rid of stuttersIf you have a multicore processor, enter the following lines in your extra.txt file:-XX:+UseParallelGC-XX:+UseParallelOldGCIf you don't have a multicore processor then enter these lines instead:-XX:+UseConcMarkSweepGC-XX:+CMSIncrementalMode-XX:+ExplicitGCInvokesConcurrent5. Save your extra.txt file and enjoy smoother gameplaySteam Users: Upon launching the game from Steam, you'll have to click 'Sign in through Facebook'.
This will not make you sign in through Facebook, but rather bring you to this website where you can log into your Steam account just like you would for the forums. The game then launches with your proper account after you've signed in. We need to go over some things here.First up, in some cases Spiral Knights will not launch under Steam if 64-bit java is specified. This can be true for both Windows and OS X computers and appears to be a hiccup with Steam. In general the observed difference between 32 and 64 bit Java is so small that it's probably not worth your while.The memory tuning is for the Java heap. As a rule of thumb, the capped physical memory SK tends to use is the Xmx + (Xmx.5).
If you set the value to 'Xmx1G' SK will end up using 1.5GB of physical memory before any aggressive garbage collecting occurs. If you do not have enough physical memory available SK may unceremoniously crash without any warning. Users with 2GB if RAM and a browser open on top of SK can reach this point without much effort (especially with integrated graphics). Giving SK a 3GB allotment is just silly, there's nothing useful that comes of it. That's modded Skyrim territory.The vast majority of users do not need to worry about changing their memory usage settings. Users running on high detail for repeated boss runs on a single session may start feeling a bit tight, but unless you're engaging in multi-hour sessions at greater than effective 1080p resolutions you really don't need to bother.Using extra garbage collection tuning options has sometimes backfired on users, bringing in additional stutters.
They really can't be used as general catch-alls. If you have a look at your launcher.log file you'll notice there's already some tuning applied. If using 64-bit Java on a recent computer you're likely triggering Java's automatic use of the -server flag anyway, which should result in parallel garbage collect being assumed. Switching from 32-bit to 64-bit Java was a very noticeable difference for me and most people from my guild who have done the tweaks. But I welcome any case studies you have compiled to justify your statement of 'in general'.Also I have had my memory usage reach 2GB.
Memory usage has increased since the update that brought changes to textures. Allotting 3G is gratuitous on purpose as stated to err on the side of caution.
People who have large amounts of RAM are going to be only using a fraction of it to run their background processes so there is not harm in allotting an intentionally excessive amount 'just in case'.My own reason for experimenting with tweaks was to improve my performance in lockdown and nothing else. If you are primarily a clockworks player, the tweaks may not be worth your trouble. However, those who play the game primarily for PvP may empathize with the desire to mitigate any hardware based disadvantages one may have. I don't have any home made case studies for you, I only have access to two different computers anyway. If you wish to see where much of this comes from you can always go back to the.
After all the suggestions you'll see that we fall back on the default settings. Remember that when that thread was initially created the game's heap size was set to 256MB by default and the 'blast processing' game update had not occurred yet. In personal use, swapping out for 32/64-bit Java results in no observable change without staring at a utility like FRAPS.My other angle is that as you read that thread you'll see people editing with these settings and creating a less playable game. You will also state that players modifying their game in this manner won't be offered official support (even though the remedy is usually just removing the added file).Of course you will reach 2GB of usage if you set the Xmx higher. There tends to be very little garbage collection occurring until the Xmx limit is near and it will only take a run the Clockworks or a handful of Lockdown matches to get there. Either way, increasing memory allocation beyond Xmx1G isn't notable on high or low end computers.
This I've tried this more than a few times.What do you mean with the texture change increasing memory usage? I'm not seeing how tweaking alpha maps or changing settings for the Low option would result in greater memory usage. Yup, trying to switch to 64 bit java my SK won't launch. Nba live 2003 playstation 1. Instead it creates an error file that contains the following:## A fatal error has been detected by the Java Runtime Environment:## EXCEPTIONACCESSVIOLATION (0xc0000005) at pc=0x580895, pid=4220, tid=7012## JRE version: 7.003-b05# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.1-b02 mixed mode windows-amd64 compressed oops)# Problematic frame:# C ntdll.dll+0x50895## Failed to write core dump. People may not need tweaking at all. So no tweaks could be better than tweaking in some cases.One problem with the tweaks you mentioned are that most of them are left over from the pre-Steam SK days. After Steam version release, OOO had done some optimization to their code to make things run smoother (at least on Steam).
Another problem is that there aren't a lot of benchmarking going on with the tweaks. So people often 'feel' there is a difference (e.g. My lag stopped or reduced on some maps), but it could just be placebo effect, or the problem has been mitigated to another part of the game (e.g.
Lags move to another map, or just takes longer to show up). @DogrockFollowing the above patch on June 6, many people experienced crashes after running the game for 10 minutes. I had observed that memory usage would gradually increase until no more memory was available and the game crashed.
Since I had allotted 6x the default memory, I was able to play for much longer before my client would eventually crash also, during which memory usage would max out at the 3G I have set for my max heap.A later patch would fix this bug, but I have noticed that peak memory usage since then has always been higher than it was previously.@MeidaI know I said I wouldn't be offering tech support but since you're my broheim, I'll offer you some suggestions. Mind you I don't know how to decrypt the error report so I'm just going off of trial and error that worked for other people I've helped with this.First make sure that you did not simply copy the contents of the jre folder into the javavm folder. Rename the javavm folder into a backup and make a fresh javavm folder.From your error report, it looks like you replaced the javavm steam folder with jre7 (Java 7). I know when I was helping Entro with this, we managed to used jre7 fine.
However just in case, you should try copying the jre6 folder instead and see if that helps.Lastly you can try setting the heap size modifiers to -xms1g and -xmx2g. If for some reason you were actually running 32-bit Java, this will allow it to run and you can check if that's the case in your process manager. If you are indeed running 32-bit, make sure you are copying the jre folder from C:Program FilesJava and NOT C:Program Files (x86)Java. Apologies in advance if you were diligent with it to begin with, but it's a minor error that people often overlook.@EltiaDefinitely not a placebo effect. An obvious thing that I noticed was that with 64-bit Java, opening the PvP tab or Auction House resulted in a smooth expanding animation that I had not been able to observe previously with 32-bit Java due to a lengthily stutter that would occur during the animation instead.
I should chime in on this too,In between a 7 month break I went back to SK about 2 months ago, and during that hiatus I went from a 32bit system to a 64bit one. Aside from various problems i ran into at first, I finally got it working, but it was as clunky as I remember.
Then I revisited this thread and evaluated where I stood regarding the suggestions given here. To my surprise the extra.txt file was still in my SK file folder in the Steam directory with all my old tweaks in it, and the only thing I hadn't tried was upgrading the SK java to 64bit, which I then cautiously implemented.So the verdict: The difference between 32bit and 64bit java are night and day to me.In fact, the game is nearly unplayable when in Task Manager, if java.exe is set to PriorityReal Time, as event detection such as giving and receiving damage is instant, ie. Before i even swing my sword the damage numbers show up as if I had already hit my target. What I am saying here is that the game is TOO FAST for me on this setting, and a normal priority setting in Task Manager works just fine with the above mentioned tweaks.There's my 2 drachmas. Timbalero,You should remove all those flags you've added that start with Dsun.
They are irrelevant in Spiral Knights and at best do nothing for your performance. Spiral Knights only uses Java's OpenGL pipeline, so Dsun.java3d.opengl=true is redundant. The others are irrelevant since they only apply to the Direct Draw system, which is not in use for Spiral Knights.I'm also not sure that XX:+CMSIncrementalPacing is doing anything since the concurrent garbage collector needs to be enabled first. You don't appear to have enabled it. As already mentioned, those java2d and java3d flags don't do anything. I tested them long time ago and found out they made no differences.I have some skepticism about your results also as you don't seem to be using the concurrent GB. Usually a lot of these tweaks would give you the illusion of performance boost initially.

But when the memory being used accumulate, the cost to keep track of and clean up these memories increase also. So it's not unusual that after you play for a while (say at least 1 hour), you start to experience micro-stuttering.OP should link to, as this is the original repository for all the tweaking which you seem to be duplicating. If I were duplicating the contents of that thread I would not have bothered making my own thread. I did draw certain ideas from that thread as well as other resources, but there were also redundancies which have been removed in my version, which I consider to be definitive based on extensive testing done by myself and my fellow members of Aequitas.Nowhere in that thread are there comprehensive cross-platform instructions to performing the tweaks nor a clear cut opinion on which tweaks to use. One would have to go through the same amount of experimentation I did, as well as seek out other threads or websites for instructions on how to perform them if they are running the steam client, or macOS.I fail to see the point in all the posts you have made in this thread. Is your objective to dissuade people from trying out a free, reversible and non-time consuming tweak that could potentially improve their game performance, simply because it did not create a significant difference for you (and your system specs which everyone else apparently also shares)? Did you even try the tweaks?
Thanks thrillhaus, major fail on my part.A second problem I have is when I do this stepNavigate to your SK folder:Web Client Users: /Library/Application Support/spiral/Steam Users: /Library/Application Support/Steam/SteamApps/common/spiral knightsCreate a file in your SK folder named 'extra.txt'Enter the line '-d64' (no quotations) and save the fileI started Spiral Knights through Steam (after I checked that it was 64bit) and then it automatically tried to make a new character. When I went back to the login screen, there was a long and weird random string of letters numbers and symbols it the username field, and I couldn't log on using that or my regular username.I changed back to 32bit by removing the extra.txt file from the Spiral Knights folder, but I would really like to use 64bit.Anyone know what to do?