From 50e27fd20466de76aaf8a01e251ff9f2321939c7 Mon Sep 17 00:00:00 2001 From: Kot <1192090+koteq@users.noreply.github.com> Date: Thu, 18 Jan 2024 08:40:55 +0400 Subject: [PATCH] Fix full state updates (#4833) * Clear entities seen by a session when the full update is requested * Disable PVS budged for the full update It helps preventing weird intermediate states when a client observes themselves in a void with all the alert notifications going wild. However it introduces a spike on CPU and networking. * Add changelog line * Move the changelog line to the proper place * Update RELEASE-NOTES.md * Revert "Disable PVS budged for the full update" This reverts commit 6976ca04b8babe24502387b16aae45d874b12863. * Update RELEASE-NOTES.md --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> --- RELEASE-NOTES.md | 2 +- Robust.Server/GameStates/PvsSystem.Session.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index be08f44c6..552affe7a 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -43,7 +43,7 @@ END TEMPLATE--> ### Bugfixes -*None yet* +* Fix broken full state updates. ### Other diff --git a/Robust.Server/GameStates/PvsSystem.Session.cs b/Robust.Server/GameStates/PvsSystem.Session.cs index 33ffa6c00..e2bfa3504 100644 --- a/Robust.Server/GameStates/PvsSystem.Session.cs +++ b/Robust.Server/GameStates/PvsSystem.Session.cs @@ -193,5 +193,6 @@ internal sealed partial class PvsSystem session.PreviouslySent.Clear(); session.LastSent = null; + session.Entities.Clear(); } }