mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-26 13:49:01 -05:00
This commit is contained in:
parent
69ff33fc7b
commit
087fab245e
1 changed files with 9 additions and 3 deletions
|
@ -266,12 +266,18 @@ var Vector = require('../geometry/Vector');
|
|||
|
||||
if (engine.timing.timestamp - (render.debugTimestamp || 0) >= 500) {
|
||||
var text = "";
|
||||
text += "fps: " + Math.round(metrics.timing.fps) + space;
|
||||
|
||||
if (metrics.timing) {
|
||||
text += "fps: " + Math.round(metrics.timing.fps) + space;
|
||||
}
|
||||
|
||||
// @if DEBUG
|
||||
if (metrics.extended) {
|
||||
text += "delta: " + metrics.timing.delta.toFixed(3) + space;
|
||||
text += "correction: " + metrics.timing.correction.toFixed(3) + space;
|
||||
if (metrics.timing) {
|
||||
text += "delta: " + metrics.timing.delta.toFixed(3) + space;
|
||||
text += "correction: " + metrics.timing.correction.toFixed(3) + space;
|
||||
}
|
||||
|
||||
text += "bodies: " + bodies.length + space;
|
||||
|
||||
if (engine.broadphase.controller === Grid)
|
||||
|
|
Loading…
Reference in a new issue