@@ -1103,11 +1103,11 @@ public void Performance_OptimizedControls_ReadingPose4kTimes(OptimizationTestTyp
11031103
11041104#endif
11051105
1106- #if UNITY_2022_3_OR_NEWER 
1106+      #if UNITY_2022_3_OR_NEWER 
11071107    [ PrebuildSetup ( typeof ( ProjectWideActionsBuildSetup ) ) ] 
11081108    [ PostBuildCleanup ( typeof ( ProjectWideActionsBuildSetup ) ) ] 
11091109    [ UnityTest ,  Performance ] 
1110-     [ Category ( "Performance" ) ]   
1110+     [ Category ( "Performance" ) ] 
11111111    public  IEnumerator  Performance_MeasureInputSystemFrameTimeWithProfilerMarkers_FPS ( ) 
11121112    { 
11131113        string [ ]  markers  = 
@@ -1118,46 +1118,41 @@ public IEnumerator Performance_MeasureInputSystemFrameTimeWithProfilerMarkers_FP
11181118            "PreUpdate.NewInputUpdate" , 
11191119            "PreUpdate.InputForUIUpdate" , 
11201120            "FixedUpdate.NewInputFixedUpdate" 
1121-         } ;    
1121+         } ; 
11221122
11231123        var  keyboard  =  InputSystem . AddDevice < Keyboard > ( ) ; 
11241124        var  mouse  =  InputSystem . AddDevice < Mouse > ( ) ; 
1125-              
1125+ 
11261126        var  moveAction  =  InputSystem . actions . FindAction ( "Move" ) ; 
11271127        var  lookAction  =  InputSystem . actions . FindAction ( "Look" ) ; 
11281128        var  attackAction  =  InputSystem . actions . FindAction ( "Attack" ) ; 
11291129        var  jumpAction  =  InputSystem . actions . FindAction ( "Jump" ) ; 
11301130        var  sprintAction  =  InputSystem . actions . FindAction ( "Sprint" ) ; 
1131-              
1131+ 
11321132        int  performedCallCount  =  0 ; 
11331133
1134-         moveAction . performed  +=  context =>  {  
1135-             
1136-             performedCallCount ++ ;     
1134+         moveAction . performed  +=  context =>  { 
1135+             performedCallCount ++ ; 
11371136        } ; 
1138-          
1137+ 
11391138        lookAction . performed  +=  context =>  { 
1140-             
1141-             performedCallCount ++ ;  
1139+             performedCallCount ++ ; 
11421140        } ; 
1143-         
1144-         attackAction . performed  +=  context =>  {  
1145-             
1146-             performedCallCount ++ ;  
1141+ 
1142+         attackAction . performed  +=  context =>  { 
1143+             performedCallCount ++ ; 
11471144        } ; 
11481145
1149-         jumpAction . performed  +=  context =>  {  
1150-             
1146+         jumpAction . performed  +=  context =>  { 
11511147            performedCallCount ++ ; 
11521148        } ; 
11531149
1154-         sprintAction . performed  +=  context =>  {  
1155-             
1156-             performedCallCount ++ ;  
1150+         sprintAction . performed  +=  context =>  { 
1151+             performedCallCount ++ ; 
11571152        } ; 
1158-          
1159-         using ( Measure . ProfilerMarkers ( markers ) ) 
1160-         {     
1153+ 
1154+         using   ( Measure . ProfilerMarkers ( markers ) ) 
1155+         { 
11611156            for  ( int  i  =  0 ;  i  <  500 ;  ++ i ) 
11621157            { 
11631158                PressAndRelease ( keyboard . wKey ,  queueEventOnly :  true ) ; 
@@ -1169,18 +1164,18 @@ public IEnumerator Performance_MeasureInputSystemFrameTimeWithProfilerMarkers_FP
11691164
11701165                PressAndRelease ( keyboard . spaceKey ,  queueEventOnly :  true ) ; 
11711166
1172-                 Click ( mouse . leftButton ,  queueEventOnly :  true ) ;                  
1173-                  
1167+                 Click ( mouse . leftButton ,  queueEventOnly :  true ) ; 
1168+ 
11741169                //mouse movements for higher polling mice (66*60 ~ 4kHz) 
1175-                 for  ( int  j  =  0 ;  j  <  66 ;  ++ j )   { 
1176-                      
1177-                     Move ( mouse . position ,  new  Vector2 ( i + j ,  i + j ) ,  queueEventOnly :  true ) ; 
1170+                 for  ( int  j  =  0 ;  j  <  66 ;  ++ j ) 
1171+                 { 
1172+                     Move ( mouse . position ,  new  Vector2 ( i   +   j ,  i   +   j ) ,  queueEventOnly :  true ) ; 
11781173                } 
11791174
11801175                InputSystem . Update ( ) ; 
1181-                  
1176+ 
11821177                yield  return  null ; 
1183-               } 
1178+             } 
11841179        } 
11851180    } 
11861181
@@ -1198,14 +1193,15 @@ public IEnumerator Performance_MeasureInputSystemFrameTimeWithProfilerMarkers_Do
11981193            "PreUpdate.NewInputUpdate" , 
11991194            "PreUpdate.InputForUIUpdate" , 
12001195            "FixedUpdate.NewInputFixedUpdate" 
1201-         } ;         
1196+         } ; 
12021197
12031198        yield  return  Measure . Frames ( ) 
12041199            . WarmupCount ( 30 ) 
1205-             . DontRecordFrametime ( )   
1200+             . DontRecordFrametime ( ) 
12061201            . MeasurementCount ( 500 ) 
12071202            . ProfilerMarkers ( markers ) 
1208-             . Run ( ) ;          
1203+             . Run ( ) ; 
12091204    } 
1205+ 
1206+     #endif
12101207} 
1211- #endif
0 commit comments