removed a few more unused variables
replaced [] with .length = 0; to reset arrays
This commit is contained in:
parent
12c4b87b33
commit
f0d63f7315
5 changed files with 9 additions and 21 deletions
|
@ -3348,9 +3348,6 @@ PIXI.Stage = function(backgroundColor)
|
||||||
*/
|
*/
|
||||||
this.dirty = true;
|
this.dirty = true;
|
||||||
|
|
||||||
this.__childrenAdded = [];
|
|
||||||
this.__childrenRemoved = [];
|
|
||||||
|
|
||||||
//the stage is it's own stage
|
//the stage is it's own stage
|
||||||
this.stage = this;
|
this.stage = this;
|
||||||
|
|
||||||
|
@ -4967,8 +4964,6 @@ PIXI.WebGLRenderer = function(width, height, view, transparent, antialias)
|
||||||
this.view.addEventListener('webglcontextlost', function(event) { scope.handleContextLost(event); }, false);
|
this.view.addEventListener('webglcontextlost', function(event) { scope.handleContextLost(event); }, false);
|
||||||
this.view.addEventListener('webglcontextrestored', function(event) { scope.handleContextRestored(event); }, false);
|
this.view.addEventListener('webglcontextrestored', function(event) { scope.handleContextRestored(event); }, false);
|
||||||
|
|
||||||
this.batchs = [];
|
|
||||||
|
|
||||||
this.options = {
|
this.options = {
|
||||||
alpha: this.transparent,
|
alpha: this.transparent,
|
||||||
antialias:!!antialias, // SPEED UP??
|
antialias:!!antialias, // SPEED UP??
|
||||||
|
@ -5034,8 +5029,6 @@ PIXI.WebGLRenderer = function(width, height, view, transparent, antialias)
|
||||||
|
|
||||||
gl.useProgram(this.shaderManager.defaultShader.program);
|
gl.useProgram(this.shaderManager.defaultShader.program);
|
||||||
|
|
||||||
PIXI.WebGLRenderer.gl = gl;
|
|
||||||
|
|
||||||
gl.disable(gl.DEPTH_TEST);
|
gl.disable(gl.DEPTH_TEST);
|
||||||
gl.disable(gl.CULL_FACE);
|
gl.disable(gl.CULL_FACE);
|
||||||
|
|
||||||
|
@ -6648,8 +6641,8 @@ PIXI.CanvasRenderer.prototype.render = function(stage)
|
||||||
//stage.__childrenRemoved = [];
|
//stage.__childrenRemoved = [];
|
||||||
|
|
||||||
// update textures if need be
|
// update textures if need be
|
||||||
PIXI.texturesToUpdate = [];
|
PIXI.texturesToUpdate.length = 0;
|
||||||
PIXI.texturesToDestroy = [];
|
PIXI.texturesToDestroy.length = 0;
|
||||||
|
|
||||||
PIXI.visibleCount++;
|
PIXI.visibleCount++;
|
||||||
stage.updateTransform();
|
stage.updateTransform();
|
||||||
|
@ -6677,7 +6670,7 @@ PIXI.CanvasRenderer.prototype.render = function(stage)
|
||||||
// remove frame updates..
|
// remove frame updates..
|
||||||
if(PIXI.Texture.frameUpdates.length > 0)
|
if(PIXI.Texture.frameUpdates.length > 0)
|
||||||
{
|
{
|
||||||
PIXI.Texture.frameUpdates = [];
|
PIXI.Texture.frameUpdates.length = 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -50,9 +50,6 @@ PIXI.Stage = function(backgroundColor)
|
||||||
*/
|
*/
|
||||||
this.dirty = true;
|
this.dirty = true;
|
||||||
|
|
||||||
this.__childrenAdded = [];
|
|
||||||
this.__childrenRemoved = [];
|
|
||||||
|
|
||||||
//the stage is it's own stage
|
//the stage is it's own stage
|
||||||
this.stage = this;
|
this.stage = this;
|
||||||
|
|
||||||
|
|
|
@ -120,8 +120,8 @@ PIXI.CanvasRenderer.prototype.render = function(stage)
|
||||||
//stage.__childrenRemoved = [];
|
//stage.__childrenRemoved = [];
|
||||||
|
|
||||||
// update textures if need be
|
// update textures if need be
|
||||||
PIXI.texturesToUpdate = [];
|
PIXI.texturesToUpdate.length = 0;
|
||||||
PIXI.texturesToDestroy = [];
|
PIXI.texturesToDestroy.length = 0;
|
||||||
|
|
||||||
PIXI.visibleCount++;
|
PIXI.visibleCount++;
|
||||||
stage.updateTransform();
|
stage.updateTransform();
|
||||||
|
@ -149,7 +149,7 @@ PIXI.CanvasRenderer.prototype.render = function(stage)
|
||||||
// remove frame updates..
|
// remove frame updates..
|
||||||
if(PIXI.Texture.frameUpdates.length > 0)
|
if(PIXI.Texture.frameUpdates.length > 0)
|
||||||
{
|
{
|
||||||
PIXI.Texture.frameUpdates = [];
|
PIXI.Texture.frameUpdates.length = 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -40,8 +40,6 @@ PIXI.WebGLRenderer = function(width, height, view, transparent, antialias)
|
||||||
this.view.addEventListener('webglcontextlost', function(event) { scope.handleContextLost(event); }, false);
|
this.view.addEventListener('webglcontextlost', function(event) { scope.handleContextLost(event); }, false);
|
||||||
this.view.addEventListener('webglcontextrestored', function(event) { scope.handleContextRestored(event); }, false);
|
this.view.addEventListener('webglcontextrestored', function(event) { scope.handleContextRestored(event); }, false);
|
||||||
|
|
||||||
this.batchs = [];
|
|
||||||
|
|
||||||
this.options = {
|
this.options = {
|
||||||
alpha: this.transparent,
|
alpha: this.transparent,
|
||||||
antialias:!!antialias, // SPEED UP??
|
antialias:!!antialias, // SPEED UP??
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue