Valheim

Valheim

Miaksah Dec 12, 2022 @ 6:44am
Does anyone know why the gave constantly freezes for 1-2 seconds every so often?
So im hosting a server (but it even happens offline) for me and my friends, All of my friends are getting constant freezes for like 1-2 seconds every so often. They DO NOT happen at the same time, and they are not happening when the world is saving. It could freeze for me , then a few minutes later to a friend, etc. its gotten us killed a lot and almost completely ♥♥♥♥♥♥ us and made us completely have to restart because of it. what can we do to fix this?
< >
Showing 1-14 of 14 comments
TheBoot Dec 12, 2022 @ 6:48am 
Only thing that freezes the game for me like you describe is the world save which you say is not the event causing it. I'm curious if the server save is independent of the client saves? Is it possible there's a save going on somewhere that's not necessarily on your local machine but it still causing the quick freeze for everyone?
Dans_Tip Dec 12, 2022 @ 6:53am 
Originally posted by hiskiam007:
So im hosting a server (but it even happens offline) for me and my friends, All of my friends are getting constant freezes for like 1-2 seconds every so often. They DO NOT happen at the same time, and they are not happening when the world is saving. It could freeze for me , then a few minutes later to a friend, etc. its gotten us killed a lot and almost completely ♥♥♥♥♥♥ us and made us completely have to restart because of it. what can we do to fix this?

Ya this still happens. Your character saves and also whenever your server saves this happens. Even if you run a dedicated server btw.
Miaksah Dec 12, 2022 @ 6:58am 
Originally posted by Not_GHLHQ_TTV:
Originally posted by hiskiam007:
So im hosting a server (but it even happens offline) for me and my friends, All of my friends are getting constant freezes for like 1-2 seconds every so often. They DO NOT happen at the same time, and they are not happening when the world is saving. It could freeze for me , then a few minutes later to a friend, etc. its gotten us killed a lot and almost completely ♥♥♥♥♥♥ us and made us completely have to restart because of it. what can we do to fix this?

Ya this still happens. Your character saves and also whenever your server saves this happens. Even if you run a dedicated server btw.
so it happens to every single person? I tried seachiung this forum for "Freezes" but i didnt really find much. for a bug that can be so gamebreaking its not really being talked about? has there been any info on why its happening and maybe a solution to stop it?
Aleks Dec 12, 2022 @ 7:18am 
same to me, finding solution...
GrandAlpaca Dec 12, 2022 @ 8:40am 
Same issue here. Hosting a server on Gportal with ValheimPlus enabled
Hoggmeiser Dec 12, 2022 @ 8:49am 
Same here. I'm rocking the latest H/W drivers, tried turning off/on different graphical setting like motion blur and depth of field, no luck. A 1-2 second freeze is huge when you getting bombarded by skeletons in a new world lol.
Aska Dec 12, 2022 @ 11:30am 
Devs need to fix the garbage collection routine which reduces RAM usage.
Joe the Lesser Dec 12, 2022 @ 11:40am 
Fairly sure I've figured out what it is.

Pretty sure it's Character backups. Finally pinned it down in logs dead to the time experienced. Each time the frame drops occur, there's a log related to character file backups. Tested with Local or cloud save doesn't matter, I've tried both. The hitching still occurs.

https://imgur.com/a/qnpr3Ei

Can anyone counter or confirm?

EDIT:
After more testing, I think I'm wrong here. I've experienced several lag spikes, and character saves/backups are no longer in the logs near those hitches/spikes. Back to square one, probably.

2nd EDIT:
I think sometimes this MIGHT be character backups, but other times I see Unity Logs say Music is loading, so I'm suspecting just some kinda of bad call for IO use generally.
Last edited by Joe the Lesser; Dec 13, 2022 @ 8:38am
FissionChips Dec 12, 2022 @ 1:54pm 
Non-world save related freezes are new for me since Mistlands update, playing vanilla solo.

This issue has come up before, no idea if the devs are on it though.
Miaksah Dec 12, 2022 @ 8:02pm 
Originally posted by FissionChips:
Non-world save related freezes are new for me since Mistlands update, playing vanilla solo.

This issue has come up before, no idea if the devs are on it though.
I remember getting these freezes back when the gmae first released too, but not sure if my friends did then too. just wish i knew how we could try and prevent it.
AlexWayfer Dec 13, 2022 @ 2:33am 
Originally posted by Joe the Lesser:
Fairly sure I've figured out what it is.

Pretty sure it's Character backups. Finally pinned it down in logs dead to the time experienced. Each time the frame drops occur, there's a log related to character file backups. Tested with Local or cloud save doesn't matter, I've tried both. The hitching still occurs.

https://imgur.com/a/qnpr3Ei

Can anyone counter or confirm?

EDIT:
After more testing, I think I'm wrong here. I've experienced several lag spikes, and character saves/backups are no longer in the logs near those hitches/spikes. Back to square one, probably.

I thought about character saves. Also there is a detail that the freezes are in the same interval for my friend, but with a little delay after mines, I guess it's because he joins after me.

Also I remembered that there are "new" Steam cloud saves for characters, I tried to convert saves to local mode, it didn't help.
Joe the Lesser Dec 13, 2022 @ 9:09am 
--------
Yeah, I edited my comment to suggest IO stalling overall. I also moved the cloud character to local, and also even tried to remove character backups from 4 to 0, some hitching still occurs, but does seem to be less.

I think I'm going to turn music back on for a while, as some of these show character backups, and some show music is starting. Also, wish I saw a log for new animation loads, or sound effect loads, as sometimes I suspect that is what I'm waiting on. For ref, my game is currently on a ~1000MB/s SSD, so there should be VERY low IO latency from hardware to OS request.
--------
Edit:
Currently convinced this is an IO pull challenge, related to music, character backups, and any other times the disk needs to be accessed.
Reliably, I will see some Unity logs related to music, OR the character backup system, and sadly, sometimes NO logs when these spikes occur, but some animation or sound effect I have not heard/seen for a while occurs immediately after the hitching.
https://imgur.com/a/5UAkPTf
Last edited by Joe the Lesser; Dec 13, 2022 @ 12:50pm
AlexWayfer Dec 14, 2022 @ 2:03pm 
I've converted the world from cloud to local and it seems to be less laggy for me and my co-op friend. Although there are still rare little freezes.
strscrm Dec 15, 2022 @ 10:48am 
Have this to on my server and its very anoying.
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Dec 12, 2022 @ 6:44am
Posts: 14