three-webgl-stats
Forked from https://github.com/jeromeetienne/threex.rendererstats
Fixed version of this
How To install it
Via yarn:
yarn add three-webgl-stats
Via npm:
npm install three-webgl-stats --save
How To Use It
;const rendererStats = ;
position it on the page with css with something along this line:
rendererStatsdomElementstyleposition = 'absolute'rendererStatsdomElementstyleleft = '0px'rendererStatsdomElementstylebottom = '0px'documentbody
finally update it at every frame, passing the webGLRenderer reference:
rendererStats;
update it without passing anything (or passing something falsy) to reset the displayed output:
rendererStats;