From e0cdbb8ee23264d236f1567b101d7e625f39d98d Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 15 Sep 2019 23:46:07 +0100 Subject: [PATCH] added timing to engine snapshot --- test/Common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Common.js b/test/Common.js index 5510ea1..84fe962 100644 --- a/test/Common.js +++ b/test/Common.js @@ -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); @@ -36,6 +36,7 @@ const engineSnapshot = (engine, extended=false) => { positionIterations, velocityIterations, constraintIterations, + timing, bodyCount: bodies.length, constraintCount: constraints.length, compositeCount: composites.length,