Collisiongroup SetCollideable causes massive freezes on large groups, game is unplayable

Reproduction Steps

I have been getting reports since 2 days ago about public servers freezing for 30 seconds long every few seconds.

I noticed that the collisiongroup handler exhausts constantly.

The game unplayable due to the whole server freezing because of this.


Game affected:

Repro steps:

  1. Join a public server
  2. See if there are any large creations, if there are you will experience lag constantly and the ping will skyrocket.
  3. If you dont see lag, spawn in by placing a vehicle seat.

Expected Behavior

The game not to freeze for 30 seconds every 2 seconds and have a playable experience.

Actual Behavior

the game freezes constantly every few seconds due to collisiongroups

Issue Area: Engine
Issue Type: Freezing
Impact: Critical
Frequency: Constantly
Date First Experienced: 2022-10-07 00:10:00 (+02:00)


This issue happens when the place has a huge amount of parts. We mitigated the issue by calling CollisionGroupsAreCollidable before calling CollisionGroupSetCollidable to temporarily fix the issue. A long term fix will be released later.

We are resolving the issue in DM.