* make render.frame independent of info.autoReset * apply the same behavior to webgpu * Update WebGLRenderer.js --------- Co-authored-by: Michael Herzog <[email protected]>
@@ -49,7 +49,6 @@ class WebGPUInfo {
reset() {
- this.render.frame ++;
this.render.drawCalls = 0;
this.render.triangles = 0;
this.render.points = 0;
@@ -301,6 +301,8 @@ class WebGPURenderer {
if ( this._info.autoReset === true ) this._info.reset();
+ this._info.render.frame ++;
+
_projScreenMatrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse );
_frustum.setFromProjectionMatrix( _projScreenMatrix );
@@ -1097,6 +1097,8 @@ class WebGLRenderer {
if ( this.info.autoReset === true ) this.info.reset();
+ this.info.render.frame ++;
//
background.render( currentRenderList, scene );
@@ -49,7 +49,6 @@ function WebGLInfo( gl ) {
function reset() {
- render.frame ++;
render.calls = 0;
render.triangles = 0;
render.points = 0;