steamvr_unity_plugin icon indicating copy to clipboard operation
steamvr_unity_plugin copied to clipboard

SteamVR_Actions get copied every time they are called directly, generating garbage

Open hlink opened this issue 7 years ago • 2 comments

image

image

The auto-generated versions of the SteamVR_Input_Actions file returns copies instead of returning references to static instances of each action. This generates garbage every time they are called. I was able to work around it by manually caching the actions in my game code (essentially making a wrapper for the SteamVR_Input_Actions file) but that ends up being a maintenance problem whenever action sets change.

hlink avatar May 06 '19 18:05 hlink

Thanks, this turned out to be a much larger issue than anticipated because of how this version of mono deals with generic instantiation. It should be fixed in the beta released yesterday: https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.3b1

keithbradner avatar May 24 '19 18:05 keithbradner

This is fixed in the recent asset store release 2.3.2 (https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.3.2)

keithbradner avatar Jun 14 '19 00:06 keithbradner