XR package lagging editor every time something happens or gets clicked

I don’t know why but this driver is for some reason extremely invasive in the editor and popups up “Hold on” windows for up to 30+ seconds randomly anytime something is clicked or when trying to enter play mode. It’s intermittent after a few stalls.

This seems completely unnecessary as we’re not doing any XR stuff in the editor, only optionally at runtime, yet this thing thinks it needs to be involved in every single click in the editor for some reason.

How do I stop this from happening? Is this a known issue? Why is it even subscribed to things it has absolutely no involvement in?

We’re seeing the same thing. It appears to be checking if there are some legacy packages that need removing (there aren’t) and using nearly 2GB of memory in the process, and then stalling for many seconds as the GC clears up.
Happens every time we enter Play Mode for us - ruins the iteration time.

As a temp solution we’ve removed the [InitializeOnLoad] from:
Library\PackageCache\com.unity.xr.management\Editor\Legacy\XRLegacyUninstaller.cs

1 Like

Thanks for the insight and your reply, im glad to hear its not just me. I went ahead and made the same change this morning and haven’t noticed it happening yet. Hopefully it sticks!

2 Likes