Painful lag without obvious reason

In Stonehearth, even in the very beginning of the game, I experience a momentary freeze every few seconds. This makes the game painful to play, and I cannot find an explanation, although I admit that I am not the most tech savvy person. The lag exists even when all hearthlings are idle, and there are no buildings and minimal objects. Changing the graphical quality of the game has absolutely no effect on the lag. This lag began with the drop of alpha 15, and has persisted ever since

Steps to reproduce:

  1. Start a world on Stonehearth. Thats it.


Windows 10stonehearth log.txt (381.7 KB)
Version Number and Mods in use:
Alpha 16, release 552. 64 bit. I have no mods in use

System Information:
GPU: GeForce GTX 960m
CPU: Intel Core i7-6700HQ
16g: RAM
Res: 1920 x 1080

Hi @heavyturtle,

Sorry to hear the game isn’t performing well. Your rig looks plenty fast, so there must be something strange going on. Can you please post your stonehearth.log file AFTER doing the following:

Launch Stonhearth, and once you’re in it and have started a new game (or loaded) and are experiencing lag, hit ‘esc’ to go to the menu, then ‘settings’, then open the ‘system’ tab. You’ll see a big “Collect profile” button. Click that, and wait about 5 seconds (the button should become disabled, and then enabled once it’s done collecting the profile). Once that’s done, please attach your stonehearth.log file, located in either C:\Program Files (x86)\Steam\steamapps\common\Stonehearth for a typical steam install, or C:\Program Files (x86)\Stonehearth\ for a Humble install.



Huh… I’ve got the log but the forum is forbidding me from creating attatchments; “New users are not allowed to post attatchments”

I’m sure a dev will bimp your status soon to make attachments possible… in the meantime, have you checked that stonehearth is using your dedicated graphics card and not the integrated one (if you are on a laptop)

sorry about that, i just bumped you up to TL1 so you should be able to upload it now :slight_smile:

stonehearth log.txt (381.7 KB)

Heres my log, thanks for all the help so far, much appreciated! Reedo, how would I determine that?

When on your desktop, right-click to ope the nvidia control panel. Then search for stonehearth and make sure it uses the nvidia graphics card.

It looks like Stonehearth may have been using the integrated card, and now its using the nvidia card. I hopped back into my world, but no dice. The problem persists.

what resolution you playing at

Just curious, because I don’t see this being asked, has it ever ran well for you? If it did, when did the lag start? What could have changed on your system that day?

Lag started with alpha 15, and I took a break for a while. Once I heard that alpha 16 dropped, I had hoped that my problems would have been solved. Before 15, It played perfectly fine.

Full resolution I assume. I don’t see any options for res under settings. My base screen res is 1920 by 1080

oh I see it now, you’re running in 32bit mode and your system can handle 64bit.

Under Settings > System, is “Force 32-bit” checked off? if so, please uncheck that.

edit: first line in your log file has “Stonehearth Version (x32)” x32 instead of x64. The game is starved for available resources hitting the 2GB cap.

just curious. I play on 3840x2160 and it’s an unplayable slideshow unless I unplug the display and use a smaller one

Yea, I can see why that would be a problem. Force 32 is not checked though

That’s odd… ok…

Two things, a question and more digging on your part. 1. Between build 15 and 16, did you install or change anything on your system?

Have a look in your \Stonehearth directory, open/edit the file “user_settings.json” and search for, without quotes “force_32_bit” if that says false then that’s too bad as there goes that idea. If it’s true, change it to false - all lower case, but I’m honestly not sure if it’s case sensitive.

I’ve had a work system get mad at this game because it had its virus checker constantly verifying active/open files. That was slow every few minutes but ehh… long shot for you.

I’m out of ideas if the 32-bit doesn’t pan out in the settings file. Might need to wait for more Raidiant folks tomorrow when they’re back on the clock.

Well, I’ve found what appears to be a separate 64 bit launcher in the Stonehearth directory, and for whatever reason its not the default. When launched, it has (64) in the upper left corner, the default launcher had a (32) in said corner. Playing some of what I assume to be the 64 bit version, there doesn’t seem to be much notable difference. Also not sure how to launch the 64 bit version on steam

Do me a favor and look at the breakdown of resources in the lower right section of your screen. You should be able to click on the little bar down there to get a more detailed idea of what is using resources. I would be willing to bet that it’s related to this thread.

Very strange. This seems to be related to some combinations of nVidia hardware and drivers (and maybe OS?); I’m running on a 670GTX with 365.19 (same version as you) on Windows 7, but I don’t see this issue. But you’re not the first to see this, either. I’m going to send you a private message with a link to a custom build of Stonehearth that has some advanced logging capabilities in it; hopefully that will help figure out what’s going on in the gpu…

Ugh, nevermind. I’m an idiot–the gpu isn’t the culprit, it’s the server->client communication. The log you posted is littered with ‘started/stopped buffering’, which is almost certainly the important bit. What is amazing is that this seems to happen almost instantly, even during the title screen. The basic idea here is the server is always trying to tell the client stuff (what happened in the game: who moved where, what kind of effect to play when a block is placed, etc.) If the server keeps sending the client data, but the client never processes/acknowledges that data, the server starts buffering that data: holding on to it until the client finishes whatever it is doing.

So: given that this happens right on startup, where we are barely transferring anything, suggests maybe something at the OS level interfering with Stonehearth. Are you running any anti-virus software, or ip-proxy software? Aggressive firewall stuff? Anything that affects networking? If so, can you try disabling these things and see if that has any effect?