# Sleeping is almost real-time

**URL:** https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997
**Category:** The Garage
**Created:** [November 22, 2014, 7:56am UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997 "2014-11-22T07:56:24Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/21b5d044e8473b25d0bf905d60477e25f6fbe0cf.png) [@system](https://discourse.cataclysmdda.org/u/system)
#### Post date: [November 22, 2014, 7:56am UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/1 "2014-11-22T07:56:24Z")

</div>

If you have a lot of items in your base, sleeping, crafting, and disassembling take a very, very, very long time. Sleeping now takes several _minutes_ during which the game just locks up and it’s getting longer as I continue to packrat food and gear. The game is approaching unplayable. Using 0.B Brin.

Just a quick note: I’m in a LMOE shelter, and I noticed this thread: [http://smf.cataclysmdda.com/index.php?topic=8137.0](http://smf.cataclysmdda.com/index.php?topic=8137.0)

It appears this problem is related to the LMOE.

---

<div class="post-metadata">

### Author: ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)
#### Post date: [November 22, 2014, 8:44am UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/2 "2014-11-22T08:44:13Z")

</div>

I am in a normal basement, not LMOE, and have had this sleeping lockup for possibly always.

Related to number of items around.

---

<div class="post-metadata">

### Author: ![Maur](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Maur](https://discourse.cataclysmdda.org/u/Maur)
#### Post date: [November 22, 2014, 4:29pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/3 "2014-11-22T16:29:20Z")

</div>

Do you use autopickup by any chance?

Edit/ No, you’re right. Autopickup slow movement only, it seems to be indeed the number of items. That sucks, because bases and crafting areas are supposed to be full of items… i wonder if keeping them in containers would alleviate the issue…

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/21b5d044e8473b25d0bf905d60477e25f6fbe0cf.png) [@system](https://discourse.cataclysmdda.org/u/system)
#### Post date: [November 22, 2014, 5:54pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/4 "2014-11-22T17:54:31Z")

</div>

> [@Maur](#):
>
> i wonder if keeping them in containers would alleviate the issue…

Hmm. It may indeed be related to being in a LMOE shelter, then. I normally make my base in a firehouse and use the metal lockers for storage, and never had any problems. In the LMOE shelter, I just plop everything on the table in the room to the southwest. I’ll replace the table with storage lockers and see if that makes any difference.

Edit: Nope. Replaced the table with lockers and sleeping/crafting is still stuffed. I put my character to sleep, got up, made lunch, ate a salad while staring at my frozen screen, and about halfway through my meal my character finished sleeping. Not playable, I’m afraid.

---

<div class="post-metadata">

### Author: ![StopSignal](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/stopsignal/32/1923_2.png) [@StopSignal](https://discourse.cataclysmdda.org/u/StopSignal)
#### Post date: [November 22, 2014, 7:23pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/5 "2014-11-22T19:23:46Z")

</div>

Absolutely never had an issue like this?

---

<div class="post-metadata">

### Author: ![Maur](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Maur](https://discourse.cataclysmdda.org/u/Maur)
#### Post date: [November 22, 2014, 7:33pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/6 "2014-11-22T19:33:37Z")

</div>

In my attempt to analyze whats wrong with the health of my character i turned on debug messages, and my, a whole lot of stuff is getting constantly checked. Mostly food, including non-perishables like water.

I am going to try stuffing it down in the different z-level. Performance is certainly better on the upper floor of my motel, i thought it was due to the roaming wildlife, but perhaps its due to the stash of food and bones on the lower level.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/21b5d044e8473b25d0bf905d60477e25f6fbe0cf.png) [@system](https://discourse.cataclysmdda.org/u/system)
#### Post date: [November 22, 2014, 8:08pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/7 "2014-11-22T20:08:40Z")

</div>

> [@StopSignal](#):
>
> Absolutely never had an issue like this?

Since I never had this problem in the previous release, I’m wondering if it’s because so much stuff has been made decayable which wasn’t before, like canned goods. Obviously there’s a process which is being run repeatedly while your character sleeps/crafts/passes time, checking for the decay of every object on the z-level. I have an i7 and 16 gigs of fast RAM, so if my system is being brought to its knees, it’s obviously a serious problem.

Walking Dead.rarEdit: My savegame, in case anyone wants to see what’s going on.

---

<div class="post-metadata">

### Author: ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)
#### Post date: [November 22, 2014, 8:18pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/8 "2014-11-22T20:18:09Z")

</div>

Jumped into latest experimental, turned item spawn up to 10 since I didn’t want to spend all day packratting items by hand.

Walking around town seemed okay.  
Walking near or within a shopping mall was unplayably slow.  
Attemped to sleep inside a random fire station, took 8-10 seconds to be told I wasn’t tired.  
Wished up some drugs to make myself tired, attempting to sleep caused the game to hang up.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/21b5d044e8473b25d0bf905d60477e25f6fbe0cf.png) [@system](https://discourse.cataclysmdda.org/u/system)
#### Post date: [November 22, 2014, 8:30pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/9 "2014-11-22T20:30:55Z")

</div>

> [@Thwap](#):
>
> attempting to sleep caused the game to hang up.

It’s not hung. If you wait long enough it’ll eventually process everything – but we’re talking minutes, and possibly a _lot_ of them depending on how beefy your system is. Crafting and reading books also is seriously slowed.

---

<div class="post-metadata">

### Author: ![Maur](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Maur](https://discourse.cataclysmdda.org/u/Maur)
#### Post date: [November 22, 2014, 8:37pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/10 "2014-11-22T20:37:17Z")

</div>

Would making decay checks happen every six hours or so mean anything of value lost? I guess it would improve performance a lot, no?

---

<div class="post-metadata">

### Author: ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)
#### Post date: [November 22, 2014, 9:19pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/11 "2014-11-22T21:19:24Z")

</div>

> [@Maur](#):
>
> Would making decay checks happen every six hours or so mean anything of value lost? I guess it would improve performance a lot, no?

Currently decay checks are spread in time, they don’t happen all at once.  
You can check what items get updated in which turns by activating debug output (default ~).

It will also list permafood and drugs, but Kevin said it’s only a result of the debug mode and it wouldn’t do so without debug mode.

---

<div class="post-metadata">

### Author: ![Maur](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Maur](https://discourse.cataclysmdda.org/u/Maur)
#### Post date: [November 22, 2014, 11:57pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/12 "2014-11-22T23:57:06Z")

</div>

I ran over all my items lying around (over 1000) with a car, and the game speeded up. And that was after i got rid of the perishables, so that was not the only issue.

I wonder whether it is a number of items, number of different items, or number of specific items…

---

<div class="post-metadata">

### Author: ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)
#### Post date: [November 23, 2014, 5:45pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/13 "2014-11-23T17:45:35Z")

</div>

It’s based on number of items, it has to _find_ the active items. Yes there are some things we can do about this, and we will be doing some of them pretty soon.

---

<div class="post-metadata">

### Author: ![Maur](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Maur](https://discourse.cataclysmdda.org/u/Maur)
#### Post date: [November 23, 2014, 10:02pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/14 "2014-11-23T22:02:33Z")

</div>

> [@Kevin Granade](#):
>
> It’s based on number of items, it has to _find_ the active items. Yes there are some things we can do about this, and we will be doing some of them pretty soon.

Great. I have rather old hardware and its quite noticeable to the extent i have to keep my stash on separate z-level.

---

<div class="post-metadata">

### Author: ![Maur](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Maur](https://discourse.cataclysmdda.org/u/Maur)
#### Post date: [November 23, 2014, 11:11pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/15 "2014-11-23T23:11:30Z")

</div>

Hm, while we are at it, does the number of unique items matter or total item count?

What i mean is that whether 1500 rags in one tile slow the game more than 1 rag.

---

<div class="post-metadata">

### Author: ![Valpo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valpo/32/341_2.png) [@Valpo](https://discourse.cataclysmdda.org/u/Valpo)
#### Post date: [November 23, 2014, 11:42pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/16 "2014-11-23T23:42:19Z")

</div>

i think 1500 rags will start to effect you.

i crashed a vehicle into 10s of thousands mettal bits … they weren t unique all of them but they still slowed down the game considerably and every time i entered that map section it took quite some time to load them in freezing the game.

---

<div class="post-metadata">

### Author: ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)
#### Post date: [November 24, 2014, 5:30am UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/17 "2014-11-24T05:30:47Z")

</div>

It’s number of instances of items.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/21b5d044e8473b25d0bf905d60477e25f6fbe0cf.png) [@system](https://discourse.cataclysmdda.org/u/system)
#### Post date: [November 24, 2014, 7:01am UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/18 "2014-11-24T07:01:49Z")

</div>

Lovely. I built a bed above-ground so I could sleep in something less than 30 minutes, real-time. When I woke up, there were _thousands_ of fungaloids all around me, which had reproduced while I slept, and the entire surrounding landscape is now fungal bed. I think I’ll put Cataclysm away for a bit until this gets fixed.

---

<div class="post-metadata">

### Author: ![Thwap](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Thwap](https://discourse.cataclysmdda.org/u/Thwap)
#### Post date: [November 24, 2014, 9:54pm UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/19 "2014-11-24T21:54:45Z")

</div>

> [@CarlStayBack!](#):
>
> Lovely. I built a bed above-ground so I could sleep in something less than 30 minutes, real-time. When I woke up, there were _thousands_ of fungaloids all around me, which had reproduced while I slept, and the entire surrounding landscape is now fungal bed. I think I’ll put Cataclysm away for a bit until this gets fixed.

Yeah right now I’m just kinda making random characters who die off quickly, reading the forums to stay abreast of things, and waiting for this to be put in order before I begin another serious playthrough. Not a big deal though. They handle issues pretty well here, I’ve discovered.

---

<div class="post-metadata">

### Author: ![Maur](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Maur](https://discourse.cataclysmdda.org/u/Maur)
#### Post date: [November 26, 2014, 7:26am UTC](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997/20 "2014-11-26T07:26:19Z")

</div>

> [@Kevin Granade](#):
>
> It’s number of instances of items.

Okay, i know it sounds silly, but after checking thesaurus, i am still not sure (i am not a native speaker…)

Do you mean:

a) the number of item kinds/types.  
b) the total number of items (so 700 rags count as 700 items).

I think its the second, but as i said, i am not sure.

[Next page](https://discourse.cataclysmdda.org/t/sleeping-is-almost-real-time/7997.md?page=2)
