-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.8.1] perf pass #10643
[2.8.1] perf pass #10643
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question about ValueTuple, otherwise looks good!
@@ -37,7 +37,7 @@ public static bool IsInFOVCached(this Camera cam, Collider myCollider) | |||
return false; | |||
} | |||
|
|||
Tuple<Collider, Camera> cameraColliderPair = new Tuple<Collider, Camera>(myCollider, cam); | |||
ValueTuple<Collider, Camera> cameraColliderPair = ValueTuple.Create(myCollider, cam); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ValueTuple is a .net framework 4.7 feature. any thoughts as to whether or not this will break on older unity versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Overview
CameraFOVChecker
,ObjectManipulator
,ObjectManipulator
, andLRUCache
MicrosoftArticulatedHand
,GenericXRSDKController
, andFocusProvider
at an earlier point where we know there's no work to be doneOpenXRDeviceManager
,XRSDKDeviceManager
,BaseCursor
, andFocusProvider
XRSDKDeviceManager
to use theInputDevices
events instead of polling every frame (which can be expensive for this method)ControllerPoseSynchronizer
andFocusProvider
to useSetPositionAndRotation
in hot loopsObjectManipulator
to not update twice per frame when doing two handed manipulation...LinePointer
's line data provider when the pointer isn't active, since there's no need to update a line for an inactive pointerObjectManipulator
to no longer use a dictionary