I play on a server that's hosted NA West and I'm NA East but it's hasn't caused any problems before. Like it would be a network time out every once and in a while but now it's every 25-35 min if I open a inventory in that window then I freeze and I disconnect. It started 2 maybe 3 days ago and I don't know what to do cause I have reinstalled the game and I use Ethernet. I have 100mbs download and 10mbs upload. I'm the only one this happens too. and when i say its like clock work i mean every 20 min if i open an inventory/GUI the server network times out. and if im going from point A to B and the 20 min past halfway to point B then when i open my inventory i will disconnect and when i rejoin i spawn where the 20 min window was crossed but my vehicle will stay at where i got timed out. my uncle and my 2 friends who are good with this stuff and done everything we could think of for the past 2 days to fix it but no result. also if i dont close and reopen the game after the timeout then my game will show a unity error and crash. My specs are r5 2600 rx580 and 16gb ram. My computer also doesn't overheat and there's no usage for anything PC related. It's a dedicated server run by my uncle and it uses darkness falls mod. It's alpha 20.6. the darkness falls version is 4.1.2.
Whenever I see 20 minutes, it is clear what the problem is. Every 20 minutes (triggered only when opening containers/inventory/etc), the game clears out unused data. This can cause the game to hang and depending how long the game hangs and what the timeout is for the server, you can get disconnected. You can easily verify this be opening the console and reading the last couple of lines when the disconnect happens. You are going to see a line similar to:
2023-04-21T22:50:57 1294.235 INF UnloadUnusedAssets after 20.04197 m, took 0 ms
All of these are going to say after 20 minutes, give or take, because that's how often they run.
Now, here are the main ways to fix this issue or at least limit it:
- Make sure your page file is on a SSD and set to allow Windows to control its size.
- Preferably also have your game and saves on SSD as well, though that is less of an issue as the page file.
- Increase your RAM. 16GB is not bad and is above specs, but it is helpful.
Note that the issue is mostly where the page file is located in my experience. The other points just further improve the situation. Also note that the timeout problem is going to be most noticeable on servers, less so when connecting to someone hosting from their own computer, and non-existent in single player. But you'll still see the game hanging every 20 minutes in each instance. Servers usually have a low timeout period and that's why it is most noticeable there.
Just for reference:
I played the game with the game installed on SSD, but due to it being a small SSD, I had the saves and page file on HDD. I had 8GB RAM at the time. Every 20 minutes, I would freeze when opening inventory/containers/etc. and that freeze usually lasted for 2-4 minutes, though it sometimes was only seconds. As soon as I added a larger SSD and placed my page file on SSD and my saves on SSD (game still on SSD), that freeze dropped to no more than 3-4 seconds. As soon as I upgraded to 32GB RAM, it dropped to under 1 second.
Oh, and you have almost the same specs as I had. I have AMD Ryzen 5 2400G with Radeon RX580 and originally had 8GB RAM.