VRTK: Enabling/Disabling Interactables inside an Interactor's radius causing large framerate drop

Environment

*Source of VRTK (GitHub). *Version of VRTK (v4 Github master). *Version of the Unity software (Unity 2019.1.1f1). *Hardware used (Oculus). *SDK used (UnityXR).

Steps to reproduce

  1. Take an Interactable.Primary_Grab.Secondary_Swap and drop it into the scene.
  2. Shrink the Interactable to something small like 0.01, 0.01, 0.01 (small enough for 4 of them to fit inside an Interactor’s radius).
  3. Duplicate the small Interactable 3 times, for 4 total.
  4. Position the Interactor so it is encompassing all 4 Interactables.
  5. Enable/Disable all 4 Interactables at once repeatedly, after a short time the framerate will drop severely.

NB: I’m guessing this happens even with just 1 Interactable, but it takes a lot more enables/disables to drop the framerate significantly.

Expected behavior

No frame drop.

Current behavior

Massive frame drop.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Unity doesn’t handle disabling stuff well 🤣 that’s half the problem with this original bug in the first place