Skip to content

Commit

Permalink
added timing to engine snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Sep 15, 2019
1 parent ea5c012 commit e0cdbb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const limit = (val, precision=3) => {
const engineSnapshot = (engine, extended=false) => {
const {
positionIterations, velocityIterations,
constraintIterations, world
constraintIterations, timing, world
} = engine;

const bodies = Composite.allBodies(world);
Expand All @@ -36,6 +36,7 @@ const engineSnapshot = (engine, extended=false) => {
positionIterations,
velocityIterations,
constraintIterations,
timing,
bodyCount: bodies.length,
constraintCount: constraints.length,
compositeCount: composites.length,
Expand Down

0 comments on commit e0cdbb8

Please sign in to comment.