ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
352 stars 82 forks source link

Lag when playing a Scene #186

Closed valdeezzee closed 3 years ago

valdeezzee commented 3 years ago

I am running Unity 2019.4.2. I have steamvr and Vive Input Utility installed. When I play a scene, the editor freezes for about 10 seconds before I can do anything. The whole editor freezes and I can't click on any other windows in the editor. I've tried running an empty scene and I get the same results. I have also tried running this same scenario as above in 2018.3.9 and no luck. If I removed ViveInput, everything works as expected and there is no lag.

The same issue happens in a build but the lag is only a few seconds.

NagaChiang commented 3 years ago

We've looked into the issue. It takes too long to update the define symbols. This will be optimized in the next release.

Thanks for reporting!

lawwong commented 3 years ago

VRModuleManagerEditor.zip VRModuleManagerEditor.cs This patch should fixes the issue, let us know if it works, thanks.

valdeezzee commented 3 years ago

I added it and it gave me this error: 'VIUSettingsEditor' does not contain a definition for 'VIUPackageName' The error happen in VRModuleManagerEditor.cs on line 325.

ilya-andreyeu commented 3 years ago

Hi. We have the same problem. It was the editor's scripts. We are deleted a lot of them and fix this trouble. But we have another - we are removing a lot of editor's scripts))

@NagaChiang link to the removed files

lawwong commented 3 years ago

Oops, my bad. I created new hotfix branch, plz refer to the new link, thanks. fixed file link fixed file raw

BTW, new version is coming soon, this fixes also included.

lawwong commented 3 years ago

Fixed in v1.12.0