From fa86527302e43a082ee3a1305c7d8b24fe9c0045 Mon Sep 17 00:00:00 2001 From: Michael Dorst Date: Sat, 5 Dec 2015 02:14:57 -0800 Subject: [PATCH] fps counter only in debug fps is a property of the runner, not the engine, therefore the engine shouldn't know about it. --- src/render/Render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/Render.js b/src/render/Render.js index 727ad027..694194d6 100644 --- a/src/render/Render.js +++ b/src/render/Render.js @@ -266,9 +266,9 @@ var Vector = require('../geometry/Vector'); if (engine.timing.timestamp - (render.debugTimestamp || 0) >= 500) { var text = ""; - text += "fps: " + Math.round(metrics.timing.fps) + space; // @if DEBUG + text += "fps: " + Math.round(metrics.timing.fps) + space; if (metrics.extended) { text += "delta: " + metrics.timing.delta.toFixed(3) + space; text += "correction: " + metrics.timing.correction.toFixed(3) + space;