From 548da33664edd792bfe1fdb04b092322f6580511 Mon Sep 17 00:00:00 2001 From: Paul Graffam Date: Mon, 6 Jul 2020 17:27:49 -0400 Subject: [PATCH] Updated stats --- src/js/app/helpers/stats.js | 8 ++++---- src/public/js/rStats.extras.js | 15 ++++++--------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/js/app/helpers/stats.js b/src/js/app/helpers/stats.js index e38a0ad..b023695 100644 --- a/src/js/app/helpers/stats.js +++ b/src/js/app/helpers/stats.js @@ -29,9 +29,9 @@ export default class Stats { fractions: [ { base: 'frame', steps: ['texture', 'setup', 'render'] } ], - plugins: [bS, tS, glS] + plugins: [bS, tS] }); - }; + } static start() { rS('frame').start(); @@ -41,7 +41,7 @@ export default class Stats { rS('FPS').frame(); rS('render').start(); - }; + } static end() { rS('render').end(); // render finished @@ -51,5 +51,5 @@ export default class Stats { rS('rStats').start(); rS().update(); rS('rStats').end(); - }; + } } diff --git a/src/public/js/rStats.extras.js b/src/public/js/rStats.extras.js index 2a88f8f..78aaf69 100644 --- a/src/public/js/rStats.extras.js +++ b/src/public/js/rStats.extras.js @@ -116,9 +116,9 @@ window.threeStats = function ( renderer ) { 'renderer.info.render.calls': { caption: 'Calls' }, - 'renderer.info.render.faces': { - caption: 'Faces', - over: 1000 + 'renderer.info.render.triangles': { + caption: 'Triangles', + over: 5000 }, 'renderer.info.render.points': { caption: 'Points' @@ -133,21 +133,18 @@ window.threeStats = function ( renderer ) { values: [ 'renderer.info.memory.geometries', 'renderer.info.programs', 'renderer.info.memory.textures' ] }, { caption: 'Three.js - Render', - values: [ 'renderer.info.render.calls', 'renderer.info.render.faces', 'renderer.info.render.points', 'renderer.info.render.vertices' ] + values: [ 'renderer.info.render.calls', 'renderer.info.render.triangles', 'renderer.info.render.points' ] } ]; var _fractions = []; function _update () { - _rS( 'renderer.info.memory.geometries' ).set( renderer.info.memory.geometries ); //_rS( 'renderer.info.programs' ).set( renderer.info.programs.length ); _rS( 'renderer.info.memory.textures' ).set( renderer.info.memory.textures ); _rS( 'renderer.info.render.calls' ).set( renderer.info.render.calls ); - _rS( 'renderer.info.render.faces' ).set( renderer.info.render.faces ); - _rS( 'renderer.info.render.points' ).set( renderer.info.render.points ); - _rS( 'renderer.info.render.vertices' ).set( renderer.info.render.vertices ); - + _rS( 'renderer.info.render.triangles' ).set( renderer.info.render.triangles ); + // _rS( 'renderer.info.render.points' ).set( renderer.info.render.points ); } function _start () {}