Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Commit

Permalink
stats tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpeiris committed May 5, 2019
1 parent 3187901 commit d82b8d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion rStats.css
Expand Up @@ -14,9 +14,12 @@
}
.rs-canvas {
width: 50px !important;
-webkit-order: initial;
}
.rs-counter-id {
display: none;
font-size: 8pt;
margin-right: 0.4em;
width: auto;
}
.rs-counter-value {
margin-right: 0.25em;
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/aframe/scene.js
Expand Up @@ -47,7 +47,7 @@ class Scene {
this._scene.setAttribute("rstats", "");

document.addEventListener("DOMContentLoaded", () => {
stats = new rStats({ values: { frame: { average: true } } });
stats = new rStats({ values: { frame: { caption: "(ms)", average: true } } });
stats().element.className = "tde-rs-base";
document.body.insertBefore(this._scene, document.body.children[0]);
});
Expand Down
2 changes: 1 addition & 1 deletion src/three-scene.js
Expand Up @@ -48,7 +48,7 @@ class Scene {
this._setSize();
document.addEventListener("mousemove", this._updateMouse.bind(this));
document.addEventListener("DOMContentLoaded", () => {
stats = new rStats({ values: { frame: { average: true } } });
stats = new rStats({ values: { frame: { caption: "(ms)", average: true } } });
stats().element.className = "tde-rs-base";
document.body.append(this._renderer.domElement);
this._playing = true;
Expand Down

0 comments on commit d82b8d7

Please sign in to comment.