@@ -350,19 +350,25 @@ var CanvasRenderer = new Class({
350350 } ,
351351
352352 /**
353- * Renders the Scene to the given Camera.
353+ * The core render step for a Scene Camera.
354+ *
355+ * Iterates through the given array of Game Objects and renders them with the given Camera.
356+ *
357+ * This is called by the `CameraManager.render` method. The Camera Manager instance belongs to a Scene, and is invoked
358+ * by the Scene Systems.render method.
359+ *
360+ * This method is not called if `Camera.visible` is `false`, or `Camera.alpha` is zero.
354361 *
355362 * @method Phaser.Renderer.Canvas.CanvasRenderer#render
356363 * @since 3.0.0
357364 *
358365 * @param {Phaser.Scene } scene - The Scene to render.
359- * @param {Phaser.GameObjects.DisplayList } children - The Game Objects within the Scene to be rendered.
366+ * @param {Phaser.GameObjects.GameObject[] } children - An array of filtered Game Objects that can be rendered by the given Camera .
360367 * @param {Phaser.Cameras.Scene2D.Camera } camera - The Scene Camera to render with.
361368 */
362369 render : function ( scene , children , camera )
363370 {
364- var list = children . list ;
365- var childCount = list . length ;
371+ var childCount = children . length ;
366372
367373 var cx = camera . x ;
368374 var cy = camera . y ;
@@ -400,7 +406,7 @@ var CanvasRenderer = new Class({
400406
401407 ctx . globalCompositeOperation = 'source-over' ;
402408
403- this . drawCount += list . length ;
409+ this . drawCount += childCount ;
404410
405411 if ( camera . renderToTexture )
406412 {
@@ -411,12 +417,7 @@ var CanvasRenderer = new Class({
411417
412418 for ( var i = 0 ; i < childCount ; i ++ )
413419 {
414- var child = list [ i ] ;
415-
416- if ( ! child . willRender ( camera ) )
417- {
418- continue ;
419- }
420+ var child = children [ i ] ;
420421
421422 if ( child . mask )
422423 {
0 commit comments