-
Notifications
You must be signed in to change notification settings - Fork 317
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
NEW: ProfilerMarkers for measuring enabling/disabling of InputActions and for binding resolution. #2056
Conversation
1a8721d
to
37e8453
Compare
@@ -1793,13 +1793,15 @@ public IEnumerator UI_CanReleaseAndPressTouchesOnSameFrame() | |||
.Matches((UICallbackReceiver.Event e) => e.pointerData.pointerType == UIPointerType.Touch).And | |||
.Matches((UICallbackReceiver.Event e) => e.pointerData.position == secondPosition)); | |||
|
|||
#if UNITY_2021_2_OR_NEWER |
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.
EventType.PointerMove
was wrapped in #if UNITY_2021_2_OR_NEWER
in its declaration.
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.
Thanks for the help!
"FixedUpdate.NewInputFixedUpdate" | ||
"FixedUpdate.NewInputFixedUpdate", | ||
"InputAction.Enable", | ||
"InputActionMap.ResolveBindings" |
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.
please also add "InputAction.Disable" here, thanks
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.
added in 539258b
d19472e
to
539258b
Compare
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.
Code changes LGTM. @surfnerd I noticed there are a lot of formatting diffs on this branch. Just wondering whether its corrections by formatting tool or accidental formatting diffs? I also noticed you got a CI error that seem to be a recent regression we have noticed also on other branches so likely unrelated to this addition.
@ekcoh I think the formatting changes were due to the indentation from the Yes, I've noticed the CI failure on windows in the |
@surfnerd Recommend updating this based on develop and resolving the conflict since the unreliable test have now also been temporarily disabled until fixed. If adressed I believe this can land. |
… and for binding resolution.
This reverts commit 2802da5.
539258b
to
2e38b41
Compare
Description
Exposing more timing data of the InputSystem by adding ProfilerMarkers to
InputAction.Enable()
andInputActionMap.ResolveBindings()
. This is necessary to track frame times in the performance test project I am working on.Testing status & QA
I have run test projects against this code in Unity 6.000.0.27f1 and 2019.4.40f1.
Overall Product Risks
The risk of this change is very low given that they only add profiler information.
Comments to reviewers
To continue being accountable for performance, I am adding more profiler markers to parts of the code that previously did not have them. These changes will be tracked in a separate performance test project.
Checklist
Before review:
Changed
,Fixed
,Added
sections.Tests added/changed, if applicable.Functional testsArea_CanDoX
,Area_CanDoX_EvenIfYIsTheCase
,Area_WhenIDoX_AndYHappens_ThisIsTheResult
.Performance tests.Integration tests.Docs for new/changed API's.Xmldoc cross references are set correctly.Added explanation how the API works.Usage code examples added.The manual is updated, if needed.During merge:
NEW: ___
.FIX: ___
.DOCS: ___
.CHANGE: ___
.RELEASE: 1.1.0-preview.3
.After merge:
Create forward/backward port if needed. If you are blocked from creating a forward port now please add a task to ISX-1444.