PS:I have found that the more things you carry on your backpack, the lager the game is,
whatever the item is, guns ammo food etc. about 150 different items in your backpack,the game becomes obvious lag
When you sleeping or smashing corpses the game will laggy even in early game.It's too slow that passing 30min in game will cost 1-2minutes in real.
By the way,reading or vehicle interface won't laggy like that two above.
1.start new game.
2.get lots of things in your inventory
3.try to get yourself tired
4.sleep
Back to normal.
This is a two hour cost cbm installation and the timer show how long it takes in real time.
debug.log
I've deleted the original save, but I've made a new one and they exhibit the same problem!
TESTVALI.zip
I have the same problem in my game.
I started with default starting day (60 i think) and now it is summer, day 25.
Time passes VERY slowly when sleeping, installing CBMs, cracking dial safes, etc. To sleep for an 8 hours I have to wait for about 5 to 10 minutes.
But when crafting, time passes like 5min in game time per 2 sec of irl time,
This issue occured right after some update (around 10650, i think), like, everything was fine, time passes at normal rate, then i update the game and got this slowdown.
Last time I did a profile (this was a few weeks ago), 40% of sleeping time was spent inside the function item_pockets::overflow I believe calling the can_contain function, item_pocket.cpp line 1037. This was tested on a save that had a char with loads of containers and items in his inv and around him.
Not sure how this scales based on items, or if thats even accurate any more, since it was a couple weeks ago I did that test, but might be worth looking into.
can you upload your save please, so it can be profiled
can you upload your save please, so it can be profiled
here your are,if you put more things in your inventory,you can feel even more lag.
TESTVALI.zip
i've suffered the same issue on the win10 OS, but not on linux.
I'm not sure but this may be related in how the OS handle the game's data.
Edit: I have a weak machine using dual boot win10/linux so it was actually the same condition in matter of hardware.
What's interesting is that slowdown disappears if you put container (or drop it) with items in another container - here, I got a video - https://www.youtube.com/watch?v=lDP0_mPj974
Steps:
Save: Default World.zip
Default world, no mods, build 10802, version 0.E-3656-gabf16ce (tiles) Windows x64
Tried again with latest build 10855 (0.E-4297-g3c67e80 (tiles)), as it has #40745.
Nothing changed :(
Save: Default world.zip
With 10874 (0.E-4529-gb82b0cb (tiles)) it doesn't matter anymore if the backpack of rings is equipped - slowdown stays until I drop it.
So, at least that inconsistency is gone now :)
What's interesting is that slowdown disappears if you put container (or drop it) with items in another container
Interesting, it doesn't work for me. Have an old character who wears a survivor suit, in one of pockets of which lies a satchel with 600+ Merches and various cards (cash, scientific, etc). It isn't even possible to move around with any measure of predictability about how much time a turn would take. But drop the pouch on the floor and voila, everything is suddenly fine, game working normally with turns taking approx. same amount of time.
e: aaaand I just now noticed you already mentioned it. Oh well. It's still an issue so I'll leave it here anyway.
This issue occured right after some update (around 10650, i think)
I narrowed it down to a build, but it won't help much, as it was the build (bn. 10615, 0.E-1662-g686104e (tiles)) that brought the pocket system.
Could someone knowledgeable profile saves, please?
Edit: oh, it seems the slowdown isn't there anymore at latest build (0.E-5233-g406f7bb (tiles)) - I'll test it some more and get back in ~10 hours
Edit: ok, as far I can see thousands of items do not trigger the slowdown anymore.
doesn't #40745 cache the encumbrance? or is it still rather expensive?
It caches what degree of the item encumbrance you get due to items contained in it.
It does not cache encumbrance in general.
Here's where we are:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not \'bump\' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.
This issue has been automatically closed due to lack of activity. This does not mean that we do not value the issue. Feel free to request that it be re-opened if you are going to actively work on it
Most helpful comment
What's interesting is that slowdown disappears if you put container (or drop it) with items in another container - here, I got a video - https://www.youtube.com/watch?v=lDP0_mPj974
Steps:
Save: Default World.zip
Default world, no mods, build 10802, version 0.E-3656-gabf16ce (tiles) Windows x64