Currently i am working in a game having 6 Raycast vehicle and few static track objects. I want to know how to improve the performance, the observations are given below..
Code: Select all
Profiling: Root (total running time: 164.008 ms) ---
0 -- stepSimulation (99.99 %) :: 163.991 ms / frame (1 calls)
Unaccounted: (0.010 %) :: 0.017 ms
...----------------------------------
...Profiling: stepSimulation (total running time: 163.991 ms) ---
...0 -- synchronizeMotionStates (0.48 %) :: 0.789 ms / frame (10 calls)
...1 -- internalSingleStepSimulation (99.47 %) :: 163.120 ms / frame (10 calls)
...Unaccounted: (0.050 %) :: 0.082 ms
......----------------------------------
......Profiling: internalSingleStepSimulation (total running time: 163.120 ms) ---
......0 -- updateActivationState (0.03 %) :: 0.048 ms / frame (10 calls)
......1 -- updateActions (82.68 %) :: 134.863 ms / frame (10 calls)
......2 -- integrateTransforms (0.53 %) :: 0.861 ms / frame (10 calls)
......3 -- solveConstraints (1.57 %) :: 2.568 ms / frame (10 calls)
......4 -- calculateSimulationIslands (0.09 %) :: 0.142 ms / frame (10 calls)
......5 -- addSpeculativeContacts (0.31 %) :: 0.504 ms / frame (10 calls)
......6 -- performDiscreteCollisionDetection (14.22 %) :: 23.195 ms / frame (10 calls)
......7 -- predictUnconstraintMotion (0.38 %) :: 0.614 ms / frame (10 calls)
......Unaccounted: (0.199 %) :: 0.325 ms
.........----------------------------------
.........Profiling: solveConstraints (total running time: 2.568 ms) ---
.........0 -- solveGroup (58.88 %) :: 1.512 ms / frame (10 calls)
.........1 -- processIslands (22.20 %) :: 0.570 ms / frame (10 calls)
.........2 -- islandUnionFindAndQuickSort (7.52 %) :: 0.193 ms / frame (10 calls)
.........Unaccounted: (11.410 %) :: 0.293 ms
............----------------------------------
............Profiling: solveGroup (total running time: 1.512 ms) ---
............0 -- solveGroupCacheFriendlyIterations (5.82 %) :: 0.088 ms / frame (10 calls)
............1 -- solveGroupCacheFriendlySetup (10.78 %) :: 0.163 ms / frame (10 calls)
............Unaccounted: (83.399 %) :: 1.261 ms
.........----------------------------------
.........Profiling: performDiscreteCollisionDetection (total running time: 23.195 ms) ---
.........0 -- dispatchAllCollisionPairs (87.45 %) :: 20.284 ms / frame (10 calls)
.........1 -- calculateOverlappingPairs (1.56 %) :: 0.361 ms / frame (10 calls)
.........2 -- updateAabbs (10.54 %) :: 2.445 ms / frame (10 calls)
.........Unaccounted: (0.453 %) :: 0.105 ms
Thanks in advance.