Added clearBeforeRender boolean.

This commit is contained in:
photonstorm 2015-09-15 12:52:08 +01:00
parent 0ee95b22d6
commit ff254ec33b

View file

@ -107,6 +107,14 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
*/
this.preserveDrawingBuffer = false;
/**
* Clear the Canvas each frame before rendering the display list.
* You can set this to `false` to gain some performance if your game always contains a background that completely fills the display.
* @property {boolean} clearBeforeRender
* @default
*/
this.clearBeforeRender = true;
/**
* The Frame Debugger.
* This should never be used in production games and is for debugging during development only.