Updated: Stuttering after exploring (Solved?)

The worst monsters in the Hearthlands warp the fabric of space and time...

Updated: Stuttering after exploring (Solved?)

Postby InvaderDoom » Thu Aug 25, 2016 9:02 pm

What's Happening:
  • Client(All clients, default and custom) Seem to be having massive lag issues when exploring. If I stay within 1 tile, it seems to be fine. However, if I go out exploring, after a little while my client begins to lock up for around 1-2 seconds, come back, then lock up again, rinse and repeat. This has happened in default, and Ender's.
  • I've noticed that if I turn on :stats, it seems to appear that the game goes up to 60fps, then locks up, goes down to 15-20, and once it loads back up to 60fps it locks up again, rinse and repeat

What I've noticed:
  • Appears that when the client is loading in new tiles, textures, animations, etc., It appears to lock up then.
  • Seems to only happen after I've been out exploring for a little bit(over 10 minutes)

Obviously this is a pretty big deal for me, as I was out exploring with my horse, and it started. I wasn't sure if I could hearth back home and take the horse with me, so I didn't try. Almost got caught by a Lynx, because once the game loaded back up again, it popped my character forward as if it was still moving and almost went face-first into a Lynx.

Also, if I shut the client off and restart it, it seems to fix it temporarily. However, that isn't always the ideal thing to do in some situations. Anyone else have this issue? I was thinking about making a short video the next time it does it, in case I'm the only one it's happening to.

Update:

When looking at my :stats, this is what they look like when the client first opens
Image

It's right about this time that the client starts stuttering:
Image

The only thing I've found in my notes is that the "Tex-current" starts at anywhere from 200-400, and as soon as it hits around 850-900, the client starts stuttering. It will hang for about 2 seconds and then start, then hang, rinse and repeat. My friend was having the same issue as me, and it was happening at the same time. He would restart his client at the same time and it would start stuttering at the exact moment mine would(we were on a boat together)
Last edited by InvaderDoom on Mon Aug 29, 2016 10:22 pm, edited 3 times in total.
I just love to stalk the Jorbtar
#Memories
User avatar
InvaderDoom
 
Posts: 216
Joined: Sun Jul 31, 2016 8:06 am

Re: I seem to have the strangest issues

Postby zebratul » Thu Aug 25, 2016 10:21 pm

Could be some people claiming kingdom land around you.
That takes some time to load and lags.
User avatar
zebratul
 
Posts: 438
Joined: Sun May 08, 2016 9:15 am
Location: Moscow

Re: I seem to have the strangest issues

Postby InvaderDoom » Thu Aug 25, 2016 10:43 pm

zebratul wrote:Could be some people claiming kingdom land around you.
That takes some time to load and lags.


I wish that were the case. This happens not only near me, but pretty much anywhere, I have characters in other zones and it does it as well.

It seems to he a 50/50 thing, I either load in and it does it 10 minutes later, or not at all. Hell for all I know it could be the server
I just love to stalk the Jorbtar
#Memories
User avatar
InvaderDoom
 
Posts: 216
Joined: Sun Jul 31, 2016 8:06 am

Re: I seem to have the strangest issues

Postby InvaderDoom » Fri Aug 26, 2016 6:25 am

Update: This is not just me, my friend has the same issues with Default and other clients as well.
I just love to stalk the Jorbtar
#Memories
User avatar
InvaderDoom
 
Posts: 216
Joined: Sun Jul 31, 2016 8:06 am

Re: Updated: Stuttering after exploring (Images)

Postby Gensokyo » Sat Aug 27, 2016 12:42 am

It's seemingly an issue with the memory usage of the game, me and my friend used to have it until we grabbed the run.bat from amber's and upped the numbers of -Xmsm and -Xmxm.
Gensokyo
 
Posts: 284
Joined: Sun Aug 30, 2015 10:32 am

Re: Updated: Stuttering after exploring (Images)

Postby InvaderDoom » Sat Aug 27, 2016 12:51 am

Gensokyo wrote:It's seemingly an issue with the memory usage of the game, me and my friend used to have it until we grabbed the run.bat from amber's and upped the numbers of -Xmsm and -Xmxm.


I'd love to do that, but the biggest problem with the Amber and Pasta client is that there's apparently something wrong, and I can't seem to get more than like 9-15 FPS at my base, whereas Ender's & Default I get 55-60fps all day long.

That's another can of worms though.

Also, if it's a memory usage problem, is there anyway of cranking this without Amber or Pasta client? I'd rather use Ender's
I just love to stalk the Jorbtar
#Memories
User avatar
InvaderDoom
 
Posts: 216
Joined: Sun Jul 31, 2016 8:06 am

Re: Updated: Stuttering after exploring (Images)

Postby Gensokyo » Sat Aug 27, 2016 1:31 am

InvaderDoom wrote:
Gensokyo wrote:It's seemingly an issue with the memory usage of the game, me and my friend used to have it until we grabbed the run.bat from amber's and upped the numbers of -Xmsm and -Xmxm.


I'd love to do that, but the biggest problem with the Amber and Pasta client is that there's apparently something wrong, and I can't seem to get more than like 9-15 FPS at my base, whereas Ender's & Default I get 55-60fps all day long.

That's another can of worms though.

Also, if it's a memory usage problem, is there anyway of cranking this without Amber or Pasta client? I'd rather use Ender's

Yeah, I run the game trough run.bat on ender's which consists of
Code: Select all
start javaw -Xms1024m -Xmx2048m -jar hafen.jar -U http://game.havenandhearth.com/hres/ game.havenandhearth.com
Gensokyo
 
Posts: 284
Joined: Sun Aug 30, 2015 10:32 am

Re: Updated: Stuttering after exploring (Images)

Postby MagicManICT » Sat Aug 27, 2016 6:03 am

You can go into Java's settings and tinker with the default values, and if I recall right, set it specifically for different apps.

Normally I'd post a link to a walkthrough on how to set it up, but it's late for me right now. If you can't find this, PM me and I can find some links on how to set it up in the next day or so.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am

Re: Updated: Stuttering after exploring (Images)

Postby InvaderDoom » Sat Aug 27, 2016 5:54 pm

Gensokyo wrote:Yeah, I run the game trough run.bat on ender's which consists of
Code: Select all
start javaw -Xms1024m -Xmx2048m -jar hafen.jar -U http://game.havenandhearth.com/hres/ game.havenandhearth.com


Thanks! I actually had that Idea when you mentioned it the first time and actually wrote my own little batch file for the ender client :D

mine actually worked with:
Code: Select all
java -Xms2048m -Xmx4096m -jar "updater-hafen.jar"


It takes exponentially longer for the stuttering to happen, and when it does, it's minimal now :)

MagicManICT wrote:You can go into Java's settings and tinker with the default values, and if I recall right, set it specifically for different apps.

Normally I'd post a link to a walkthrough on how to set it up, but it's late for me right now. If you can't find this, PM me and I can find some links on how to set it up in the next day or so.


Yeah, I actually have been messing with some things, and I've figured it out. I will edit the post to say "Solved" for now. Check out the things I've noted in the post below(as not to add clutter to this one) :)
I just love to stalk the Jorbtar
#Memories
User avatar
InvaderDoom
 
Posts: 216
Joined: Sun Jul 31, 2016 8:06 am

Re: Updated: Stuttering after exploring (Images)

Postby InvaderDoom » Sat Aug 27, 2016 6:28 pm

So in case anyone else has this issue, these are things I've noted in my little notebook next to me, that lead me to my solution(with the help of some others here):

Amber & Pasta Client
  • They seem to run in Javaw.exe - I'm not sure what the difference is, but there obviously is a difference
  • Seemed to run fine when I was out exploring, but not in any area that was player made
  • After a long exploring session, I noticed the memory usage hovering around 1.4-1.8 GB

Default & Ender's Client
  • Both Clients seem to run in java.exe - again, not sure of the difference, but that's the main difference I noticed
  • Seemed to run at 60fps at my base as well as when I was out exploring
  • After short exploring sessions my memory usage was only at about 800mb - 1gb
  • The game would start to have violent stuttering after exploring a short period of time

What I noticed is that both the Pasta & Amber client both use a custom launcher, that seemed to allocate a larger amount of memory to them. However, when I go into my Java control panel, I have no ability to add JVM Arguments to Java.exe, only Javaw.exe.

When I allocated more memory to Javaw.exe it actually helped a little bit, however it did not do anything for the Ender's and Default client. Leading me to assume that I needed to allocate more memory to Java.exe and not Javaw.exe. So I created a simple batch file I put into my Ender's Client folder using notepad:

Code: Select all
java -Xms2048m -Xmx4096m -jar "updater-hafen.jar"


Using this batch file to launch the Ender's client, it seems to now use 1.3 - 1.8 GB when I'm out exploring for long periods of time, and It only stutters once, then the system usually gives java.exe more memory.

Hopefully this might help someone else out, but that's how I seemed to fix my stuttering problem with both Default and Ender's client :)
I just love to stalk the Jorbtar
#Memories
User avatar
InvaderDoom
 
Posts: 216
Joined: Sun Jul 31, 2016 8:06 am

Next

Return to Bugs

Who is online

Users browsing this forum: Claude [Bot] and 22 guests