Forums › English Language Forums › Technical › Technical Issues

Search

Lagspikes every 5 seconds on a mid/high end PC

3 replies [Last post]
Thu, 10/24/2013 - 10:10
The-Dragon-Child's picture
The-Dragon-Child

Well, I've been with this game for around 3 years (participated in 3 halloween events so yea) now and Im AGAIN having these annoying lagspiking issues with this game. (I cant count how many times these have occured to me over the lifespan of this game.) The lagspikes occur very predictable every 5 or so seconds. EDIT1: Nope, lagspikes become more frequent the longer the game is active, it's now at every 2 seconds. EDIT2: It is now at a steady lagspike every 1 second. The lagspike itself is a 0.5 seconds screen freeze. EDIT3: It started happening every split second before it eventually crashed my java client.

Using Java 64-bit client with the Steam version of the game. EDIT5: Was using Java 7 U25 (Gonna update both 32-bit and 64-bit to U45 now for a sec to see if the error still persists)

Settings:

Windowed mode 1366x768
Graphics Quality High
Render Effects Enabled
AA 2x

It mainly started occuring after I did the Slenderma- I mean Apocrea mission. (Occured during the mission so yea, try dodging those tentacles with lagspiking.)

btw. The current memory usage in the taskmanager is 926MB for the java client if that is relevant. EDIT4: Memory usage right before crash was 935MB.

Sun, 10/27/2013 - 11:25
#1
Centiknight's picture
Centiknight
Increase heap space

A friend and I had the same issue on the Grasping Plateau. I fired up a diagnostic tool and it showed that the game was inching against its memory limit. It appears to be a memory leak that grows while you're on the plateau, and disappears when you go into another type of level.

The short-term solution is to boost the JVM's available memory. I use the Steam version, so I created an "extra.txt" file with "-Xmx1000M" in it. It seemed to work out for both me and my friend. If you run it some other way, you'll have to check to add it there.

Obviously, that doesn't solve the actual leak, but it'll keep you afloat long enough to finish your run. :)

Installing a later version of the Oracle JVM would work as well, because later versions seem to automatically grow/shrink their memory as required.

Tue, 10/29/2013 - 10:47
#2
Quandasim's picture
Quandasim
weird frezes

hi i play sk from official launch. i use archlinux 64 bit, jre7-openjdk 7.u40_2.4.2-1, nvidia 550ti, intel dual core ~3kMhz, 4gb ddr2 ram.

in the past i expirienced these frezes once (after patch), but 3o fixed that issue after some time. now when i enter the new shroud of blabla mission i always freze lag, but only in last level.

i know my computer and english is weak i try boost the java available memmory too, but i need figue out how to do it in linux;)

Sat, 11/02/2013 - 04:58
#3
Quandasim's picture
Quandasim
how to increase memory in linux

in linux u can edit spiral knights launching script
(my is located in /home/quandasim/spiral/spiral, so i use this command to edit:
vim spiral/spiral )
then edit this line:
$JAVA $* -jar $INSTDIR/getdown-pro.jar $INSTDIR
and change it to this:
$JAVA -Xmx2048M $* -jar $INSTDIR/getdown-pro.jar $INSTDIR

with value 2048M i dont freze lag in last shroud of blabla mission, so i think my problem is solved. ( i need do more testing to be sure;)

Powered by Drupal, an open source content management system