Remove mjTIMER_ACCELERATION, add mjTIMER_ADVANCE.
- mjTIMER_ACCELERATION is not very useful, it's usually very tiny (0.5% for humanoid, 1% for 22humanoids). It basically times a single call to `mj_solveM`. - Added `mjTIMER_ADVANCE` to time `mj_Euler` and `mj_implicit` (which can be significant). - Moved `mj_transmission` to `mjTIMER_KINEMATICS` where it belongs (and used to be). PiperOrigin-RevId: 565936880 Change-Id: I26b8a067133594e5500ca1c809beb3518b4a8d9c
This commit is contained in:
committed by
Copybara-Service
parent
e76e1c72f9
commit
63fd23a934
+1
-1
@@ -239,7 +239,7 @@ int main(int argc, char** argv) {
|
||||
|
||||
// save step time, add up timing of components
|
||||
if (i == 0) total = istep;
|
||||
if (i >= mjTIMER_POSITION && i <= mjTIMER_CONSTRAINT) {
|
||||
if (i >= mjTIMER_POSITION && i <= mjTIMER_ADVANCE) {
|
||||
components += istep;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user