mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix PredictedQueueDeleteEntity mispredicts (#6260)
* Fix PredictedQueueDeleteEntity * typo --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -288,12 +288,7 @@ namespace Robust.Shared.GameObjects
|
||||
using (histogram?.WithLabels("QueuedDeletion").NewTimer())
|
||||
using (_prof.Group("QueueDel"))
|
||||
{
|
||||
while (QueuedDeletions.TryDequeue(out var uid))
|
||||
{
|
||||
DeleteEntity(uid);
|
||||
}
|
||||
|
||||
QueuedDeletionsSet.Clear();
|
||||
ProcessQueueudDeletions();
|
||||
}
|
||||
|
||||
using (histogram?.WithLabels("ComponentCull").NewTimer())
|
||||
@@ -303,6 +298,16 @@ namespace Robust.Shared.GameObjects
|
||||
}
|
||||
}
|
||||
|
||||
internal virtual void ProcessQueueudDeletions()
|
||||
{
|
||||
while (QueuedDeletions.TryDequeue(out var uid))
|
||||
{
|
||||
DeleteEntity(uid);
|
||||
}
|
||||
|
||||
QueuedDeletionsSet.Clear();
|
||||
}
|
||||
|
||||
public virtual void FrameUpdate(float frameTime)
|
||||
{
|
||||
_entitySystemManager.FrameUpdate(frameTime);
|
||||
|
||||
Reference in New Issue
Block a user