Merge branch 'Withaust-replicationdisabling'

This commit is contained in:
Wojtek Figat
2023-08-27 16:43:31 +02:00

View File

@@ -1412,9 +1412,9 @@ void NetworkInternal::NetworkReplicatorUpdate()
if (!CachedReplicationResult)
CachedReplicationResult = New<NetworkReplicationHierarchyUpdateResult>();
CachedReplicationResult->Init();
if (!isClient && NetworkManager::Clients.IsEmpty())
if ((!isClient && NetworkManager::Clients.IsEmpty()) || NetworkManager::NetworkFPS < -ZeroTolerance)
{
// No need to update replication when nobody's around
// No need to update replication when nobody's around or when replication is disabled
}
else if (Hierarchy)
{