@@ -46,6 +46,8 @@ class Renderer {
46
46
this . depth = true ;
47
47
this . stencil = true ;
48
48
49
+ this . info = new Info ( ) ;
50
+
49
51
// internals
50
52
51
53
this . _pixelRatio = 1 ;
@@ -56,7 +58,6 @@ class Renderer {
56
58
this . _scissor = new Vector4 ( 0 , 0 , this . _width , this . _height ) ;
57
59
this . _scissorTest = false ;
58
60
59
- this . _info = null ;
60
61
this . _properties = null ;
61
62
this . _attributes = null ;
62
63
this . _geometries = null ;
@@ -131,15 +132,14 @@ class Renderer {
131
132
132
133
}
133
134
134
- this . _info = new Info ( ) ;
135
135
this . _nodes = new Nodes ( this , backend ) ;
136
136
this . _attributes = new Attributes ( backend ) ;
137
137
this . _background = new Background ( this , this . _nodes ) ;
138
- this . _geometries = new Geometries ( this . _attributes , this . _info ) ;
139
- this . _textures = new Textures ( backend , this . _info ) ;
138
+ this . _geometries = new Geometries ( this . _attributes , this . info ) ;
139
+ this . _textures = new Textures ( backend , this . info ) ;
140
140
this . _pipelines = new Pipelines ( backend , this . _nodes ) ;
141
- this . _bindings = new Bindings ( backend , this . _nodes , this . _textures , this . _attributes , this . _pipelines , this . _info ) ;
142
- this . _objects = new RenderObjects ( this , this . _nodes , this . _geometries , this . _pipelines , this . _bindings , this . _info ) ;
141
+ this . _bindings = new Bindings ( backend , this . _nodes , this . _textures , this . _attributes , this . _pipelines , this . info ) ;
142
+ this . _objects = new RenderObjects ( this , this . _nodes , this . _geometries , this . _pipelines , this . _bindings , this . info ) ;
143
143
this . _renderLists = new RenderLists ( ) ;
144
144
this . _renderContexts = new RenderContexts ( ) ;
145
145
@@ -214,9 +214,9 @@ class Renderer {
214
214
215
215
if ( camera . parent === null && camera . matrixWorldAutoUpdate === true ) camera . updateMatrixWorld ( ) ;
216
216
217
- if ( this . _info . autoReset === true ) this . _info . reset ( ) ;
217
+ if ( this . info . autoReset === true ) this . info . reset ( ) ;
218
218
219
- this . _info . render . frame ++ ;
219
+ this . info . render . frame ++ ;
220
220
221
221
//
222
222
@@ -612,12 +612,13 @@ class Renderer {
612
612
613
613
dispose ( ) {
614
614
615
+ this . info . dispose ( ) ;
616
+
615
617
this . _objects . dispose ( ) ;
616
618
this . _properties . dispose ( ) ;
617
619
this . _pipelines . dispose ( ) ;
618
620
this . _nodes . dispose ( ) ;
619
621
this . _bindings . dispose ( ) ;
620
- this . _info . dispose ( ) ;
621
622
this . _renderLists . dispose ( ) ;
622
623
this . _renderContexts . dispose ( ) ;
623
624
this . _textures . dispose ( ) ;
@@ -921,7 +922,7 @@ class Renderer {
921
922
922
923
//
923
924
924
- this . backend . draw ( renderObject , this . _info ) ;
925
+ this . backend . draw ( renderObject , this . info ) ;
925
926
926
927
}
927
928
0 commit comments