question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
thestonefoxcommented, May 12, 2019

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

0reactions
Liens1commented, May 12, 2019

Great that works thanks. It’s good to know the alternative to disabling colliders here is triggers. I’m not used to working that way

Read more comments on GitHub >

github_iconTop Results From Across the Web

Huge frame drops while playing D4 : r/diablo4
The game runs at 60FPS all the time (I locked it there), but whenever I try to use the evade skill my performance...
Read more >
Спільнота Steam :: Icarus
This new mission will have you gathering information and valuable extermination data on various creatures inhabiting Styx. We also have an update about...
Read more >
News - Steam Community Announcements
This is to avoid bumping too much into it when dropping it while moving. You may still bump it while high-velocity sprints, but...
Read more >
Untitled
One of the major points was text legibility. In large part because the softer shadows could make it appear blurry. The shadowing has...
Read more >
https://opensource.apple.com/source/WebInspectorUI...
So, text that is "killed" with CTRL-k inside a CodeMirror instance isn't added ... 2015-08-26 Joseph Pecoraro <pecoraro@apple.com> Web Inspector: Drop iOS 6 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found