Raanan Weber 5 years ago
parent
commit
e812311349
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Playground/js/frame.js

+ 2 - 1
Playground/js/frame.js

@@ -118,8 +118,9 @@ run = function () {
                 if (scene.activeCamera || scene.activeCameras.length > 0) {
                     scene.render();
                 }
-                if (fpsLabel)
+                if (fpsLabel) {
                     fpsLabel.innerHTML = engine.getFps().toFixed() + " fps";
+                }
             }.bind(this));
 
         } catch (e) {