My issue is stuttering/freezing/frame dips, when I definitely should not be having them. I was using a combination of [this guide](https://forums.spiralknights.com/en/node/62691) and [this guide](https://forums.spiralknights.com/en/node/12849?page=2#comment-203839), but it seems like a lot of the stuff seems 'out of date' (like how much ram to allocate).
I've already downloaded Java 7, since version 6 can't run G1 mode.
Here's what my extra text file looks like :
-server
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-XX:+DisableExplicitGC
-XX:MaxGCPauseMillis=50
-XX:GCPauseIntervalMillis=1000
-XX:+DisableExplicitGC
-Xnoclassgc
-Xms6G
-Xmx6G
Someone else mentioned launching it via server would make it run better. Ran it in G1 mode, chose to disabled GC. Disabled classes, lowers load times in sacrifice for ram. I saw someone with '-Xms6G' and '-Xmx6G', not sure if it even works or what.
Also, should the text file have a .txt at the end, regardless of seeing the extension or not? So it would be extra.txt.txt?
Thank you very much for all the help!
if you're using 64 bit java then -server is automatic, don't need to add it.
-xms6G and -xmx6G sets minimum and maximum ram to 6g, but the game doesn't seem to use that much, maybe a bit under 2G with 64-bit and +DisableExplicitGC, so probably don't need to bother with setting a minimum as setting it too high will keep the game from starting if you use 32 bit Java. 6G seems good for max though.
it's just extra.txt, not extra.txt.txt.
Otherwise what you have now is fine. Java 8 should run a little better than 7 due to improved gc, although the game won't run with anything past that.
Some others you can play around with are
-XX:ParallelGCThreads=### (set to number of cores you have - 2, to keep one for the game and one for music or whatever else you are running, also works with G1)
-XX:+UseStringDeduplication (small ram decrease)
-XX:MaxGCPauseMillis=20 (50 might be too high depending on fps you are getting)
-XX:+ExplicitGCInvokesConcurrent as an alternative to -XX:+DisableExplicitGC (this lets the gc decide itself whether to run instead of forcing it the way the game does by default or always ignoring it with the disable option). Despite what the other post said, it works with G1 as well. Not a huge difference.