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_Swap
and drop it into the scene. - 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). - Duplicate the small
Interactable
3 times, for 4 total. - Position the
Interactor
so it is encompassing all 4Interactable
s. - Enable/Disable all 4
Interactable
s 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