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
- Take an
Interactable.Primary_Grab.Secondary_Swapand drop it into the scene. - Shrink the
Interactableto something small like 0.01, 0.01, 0.01 (small enough for 4 of them to fit inside an Interactor’s radius). - Duplicate the small
Interactable3 times, for 4 total. - Position the
Interactorso it is encompassing all 4Interactables. - 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)
Unity doesn’t handle disabling stuff well 🤣 that’s half the problem with this original bug in the first place