mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Added clearBeforeRender boolean.
This commit is contained in:
parent
0ee95b22d6
commit
ff254ec33b
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue