diff --git a/src/core/const.js b/src/core/const.js index 48c0f8a..1ea4408 100644 --- a/src/core/const.js +++ b/src/core/const.js @@ -178,7 +178,7 @@ * The DEFAULT Garbage Collection mode for pixi textures is MANUAL * If set to DEFAULT, the renderer will occasianally check textures usage. If they are not used for a specified period of time they will be removed from the GPU. * They will of corse be uploaded again when they are required. This is a silent behind the scenes process that should ensure that the GPU does not get filled up. - * Handy for mobile devices! + * Handy for mobile devices! * This property only affects WebGL * @static * @constant @@ -215,7 +215,7 @@ RESOLUTION:1, FILTER_RESOLUTION:1, - + /** * The default render options if none are supplied to {@link PIXI.WebGLRenderer} * or {@link PIXI.CanvasRenderer}. @@ -269,7 +269,7 @@ // TODO: maybe change to SPRITE.BATCH_SIZE: 2000 // TODO: maybe add PARTICLE.BATCH_SIZE: 15000 SPRITE_BATCH_SIZE: 4096, //nice balance between mobile and desktop machines - SPRITE_MAX_TEXTURES: require('./utils/maxRecommendedTextures')(32)//this is the MAXIMUM - various gpus will have there own limits. + SPRITE_MAX_TEXTURES: require('./utils/maxRecommendedTextures')(16)//this is the MAXIMUM - various gpus will have there own limits. }; module.exports = CONST; diff --git a/src/core/const.js b/src/core/const.js index 48c0f8a..1ea4408 100644 --- a/src/core/const.js +++ b/src/core/const.js @@ -178,7 +178,7 @@ * The DEFAULT Garbage Collection mode for pixi textures is MANUAL * If set to DEFAULT, the renderer will occasianally check textures usage. If they are not used for a specified period of time they will be removed from the GPU. * They will of corse be uploaded again when they are required. This is a silent behind the scenes process that should ensure that the GPU does not get filled up. - * Handy for mobile devices! + * Handy for mobile devices! * This property only affects WebGL * @static * @constant @@ -215,7 +215,7 @@ RESOLUTION:1, FILTER_RESOLUTION:1, - + /** * The default render options if none are supplied to {@link PIXI.WebGLRenderer} * or {@link PIXI.CanvasRenderer}. @@ -269,7 +269,7 @@ // TODO: maybe change to SPRITE.BATCH_SIZE: 2000 // TODO: maybe add PARTICLE.BATCH_SIZE: 15000 SPRITE_BATCH_SIZE: 4096, //nice balance between mobile and desktop machines - SPRITE_MAX_TEXTURES: require('./utils/maxRecommendedTextures')(32)//this is the MAXIMUM - various gpus will have there own limits. + SPRITE_MAX_TEXTURES: require('./utils/maxRecommendedTextures')(16)//this is the MAXIMUM - various gpus will have there own limits. }; module.exports = CONST; diff --git a/src/core/sprites/webgl/generateMultiTextureShader.js b/src/core/sprites/webgl/generateMultiTextureShader.js index f366a81..e749168 100644 --- a/src/core/sprites/webgl/generateMultiTextureShader.js +++ b/src/core/sprites/webgl/generateMultiTextureShader.js @@ -26,7 +26,7 @@ var shader = new Shader(gl, vertexSrc, fragmentSrc); var sampleValues = []; - for (var i = 0; i < maxTextures; i++) + for (var i = 0; i < maxTextures; i++) { sampleValues[i] = i; } @@ -43,8 +43,8 @@ src += '\n'; src += '\n'; - - for (var i = 0; i < maxTextures; i++) + + for (var i = 0; i < maxTextures; i++) { if(i > 0) {