# \[R293 x64\] Tall buildings cause massive lag, LUA spiking

**URL:** <https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349>\
**Category:** Previous Build Reports\
**Created:** [May 15, 2015, 4:06pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349 "2015-05-15T16:06:23Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![rayman86](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rayman86](https://discourse.stonehearth.net/u/rayman86)\
**Post date:** [May 15, 2015, 4:06pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/1 "2015-05-15T16:06:23Z")

</div>

I designed a 6 story building for housing. After building the second floor (started on 3rd floor), it started to lag a bit with LUA spiking after every block built. Once they started to build the 4th floor, the lag increased to about 10s per block built. Now they are on the 5th floor, and the lag is around 45s per block built.

Here is a screenshot of them starting floor 5 (won’t let me post inline due to “new user”)  
[![](http://i.imgur.com/Il2iqT4.jpg) ](http://i.imgur.com/Il2iqT4.jpg)

Here is the link to the building template that I used.

[https://dl.dropboxusercontent.com/u/69152889/high-rise%2C%20back%20part.json](https://dl.dropboxusercontent.com/u/69152889/high-rise%2C%20back%20part.json)

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [May 15, 2015, 4:10pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/2 "2015-05-15T16:10:45Z")

</div>

firstly, welcome to the discourse 😄

secondly, to my knowledge this has already been reported. thanks anyways 😊

thirdly, @SteveAdamo time to use your mod powers and embed that picture 😉

---

<div class="post-metadata">

**Author:** ![SirAstrix](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/sirastrix/32/68490_2.png) [@SirAstrix](https://discourse.stonehearth.net/u/SirAstrix)\
**Post date:** [May 15, 2015, 4:12pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/3 "2015-05-15T16:12:38Z")

</div>

Fourthly, this has been a problem for the last 4 versions now.

---

<div class="post-metadata">

**Author:** ![rayman86](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rayman86](https://discourse.stonehearth.net/u/rayman86)\
**Post date:** [May 15, 2015, 4:12pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/4 "2015-05-15T16:12:44Z")

</div>

Sorry, had not seen anything like it for R293. Figured I could at least supply the template too just in case it was something i messed up in it, and not the engine itself.

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [May 15, 2015, 4:14pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/5 "2015-05-15T16:14:03Z")

</div>

ah no problems mate, and its always helpful top report if your unsure, because even if a thread has already been created @SteveAdamo is able to merge it for you 😄

---

<div class="post-metadata">

**Author:** ![SirAstrix](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/sirastrix/32/68490_2.png) [@SirAstrix](https://discourse.stonehearth.net/u/SirAstrix)\
**Post date:** [May 15, 2015, 4:18pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/6 "2015-05-15T16:18:34Z")

</div>

Just be careful double posting things. I’ve known @8BitCrab to snap a time here and there. Rest the soul of the one kid who forgot pictures. Never did find his account.

---

<div class="post-metadata">

**Author:** ![rayman86](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rayman86](https://discourse.stonehearth.net/u/rayman86)\
**Post date:** [May 15, 2015, 4:20pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/7 "2015-05-15T16:20:53Z")

</div>

LOL poor kid 😉 I did look for R293 and didnt see it. Even had it been posted before for a previous version, I am new to the game and was unaware that it existed, been fixed, regressed, etc. Thanks for the heads up for future “crabbiness” 😓

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [May 15, 2015, 4:23pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/8 "2015-05-15T16:23:11Z")

</div>

> [@SirAstrix](#):
>
> Just be careful double posting things. I’ve known @8BitCrab to snap a time here and there. Rest the soul of the one kid who forgot pictures. Never did find his account.

i have no idea what your talking about!.. _unless… no… it couldnt be… how could you know!!!_

---

<div class="post-metadata">

**Author:** ![SteveAdamo](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/steveadamo/32/13955_2.png) [@SteveAdamo](https://discourse.stonehearth.net/u/SteveAdamo)\
**Post date:** [May 15, 2015, 4:53pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/9 "2015-05-15T16:53:04Z")

</div>

> [@8BitCrab](#):
>
> embed that picture

done and done… 👍

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [May 15, 2015, 4:54pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/10 "2015-05-15T16:54:58Z")

</div>

> [@SteveAdamo](#):
>
> done and done…

good ole’ Stevey 😉

---

<div class="post-metadata">

**Author:** ![Teleros](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/teleros/32/63349_2.png) [@Teleros](https://discourse.stonehearth.net/u/Teleros)\
**Post date:** [May 15, 2015, 5:21pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/11 "2015-05-15T17:21:28Z")

</div>

> [@rayman86](#):
>
> Once they started to build the 4th floor, the lag increased to about 10s per block built. Now they are on the 5th floor, and the lag is around 45s per block built.

Sounds like the pathfinder is just poorly optimised for vertical pathfinding, that’s all. In fairness, _so far_ this hasn’t been a big issue, because the terrain is mostly flat and we’ve only just added (officially 😛 ) multi-storey structures.

---

<div class="post-metadata">

**Author:** ![rayman86](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rayman86](https://discourse.stonehearth.net/u/rayman86)\
**Post date:** [May 15, 2015, 5:23pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/12 "2015-05-15T17:23:37Z")

</div>

Hmm I am not sure - it is the LUA thread that is spiking, not the pathfinding one. Again, this is just from a user’s view so I am not sure if one originates from the other.

---

<div class="post-metadata">

**Author:** ![kjmikkel](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kjmikkel/32/44502_2.png) [@kjmikkel](https://discourse.stonehearth.net/u/kjmikkel)\
**Post date:** [May 19, 2015, 7:26pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/13 "2015-05-19T19:26:12Z")

</div>

**Version:**  
Stonehearth Alpha 10 (release 293), x64 build

**Problem description:**  
When trying to build the 3rd or 4th level of a taller building, Lua begins to take up to 80%-90%. Each time a worker lays down a block (wall, pillar or floor) all workers seems to pause for a second (and particle effects are likewise suspended). While this pause happens I can move the camera around freely, without any stutters.

**How to replicate:**  
Build a building with around 8 levels, the pauses should begin when the 3rd or 4th level is being build. I have included the schematics for a minimal tower that creates the problems, as well as a far more complicated keep where the problems show up about at the same time.

The files will obviously need to be renamed…

If more information is needed, please say so.

**Files:**  
[tower.json.txt](https://discourse.stonehearth.net/uploads/short-url/hgALulbyRsLXJMi2yKyQPXpYVZV.txt) (91.3 KB) json.txt  
[keep.json.txt](https://discourse.stonehearth.net/uploads/short-url/93SBJ4TLVqUkEvjpo7hKrDihXFu.txt) (379.5 KB) json.txt

**System:**  
[DxDiag.txt](https://discourse.stonehearth.net/uploads/short-url/2dcBAgu3Ql19FV7QYv29TlzO8XH.txt) (591 Bytes)

---

<div class="post-metadata">

**Author:** ![8BitCrab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/8bitcrab/32/48512_2.png) [@8BitCrab](https://discourse.stonehearth.net/u/8BitCrab)\
**Post date:** [May 19, 2015, 7:24pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/14 "2015-05-19T19:24:55Z")

</div>

thanks for the report, but this already is a known bug,

> **[\[R293 x64\] Tall buildings cause massive lag, LUA spiking](http://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349?u=8bitcrab)**
>
> I designed a 6 story building for housing. After building the second floor (started on 3rd floor), it started to lag a bit with LUA spiking after every block built. Once they started to build the 4th floor, the lag increased to about 10s per block...

---

<div class="post-metadata">

**Author:** ![krbrowning](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/krbrowning/32/45607_2.png) [@krbrowning](https://discourse.stonehearth.net/u/krbrowning)\
**Post date:** [June 6, 2015, 9:51pm UTC](https://discourse.stonehearth.net/t/r293-x64-tall-buildings-cause-massive-lag-lua-spiking/12349/15 "2015-06-06T21:51:45Z")

</div>

375 x64

lua @ 99.1% on a 4 story building
