diff --git a/src/prepare/BasePrepare.js b/src/prepare/BasePrepare.js index 914d0be..66cf6af 100644 --- a/src/prepare/BasePrepare.js +++ b/src/prepare/BasePrepare.js @@ -288,8 +288,7 @@ { if (item instanceof core.Text) { - // updating text will return early if it is not dirty, but we won't know - // so a non-dirty Text will count against the max number of items per frame. + // updating text will return early if it is not dirty item.updateText(true); return true; @@ -315,13 +314,9 @@ if (!core.Text.fontPropertiesCache[font]) { core.Text.calculateFontProperties(font); - - return true; } - // return false here - if it was already prepared it shouldn't count against the maximum - // number of uploads per frame - return false; + return true; } return false; diff --git a/src/prepare/BasePrepare.js b/src/prepare/BasePrepare.js index 914d0be..66cf6af 100644 --- a/src/prepare/BasePrepare.js +++ b/src/prepare/BasePrepare.js @@ -288,8 +288,7 @@ { if (item instanceof core.Text) { - // updating text will return early if it is not dirty, but we won't know - // so a non-dirty Text will count against the max number of items per frame. + // updating text will return early if it is not dirty item.updateText(true); return true; @@ -315,13 +314,9 @@ if (!core.Text.fontPropertiesCache[font]) { core.Text.calculateFontProperties(font); - - return true; } - // return false here - if it was already prepared it shouldn't count against the maximum - // number of uploads per frame - return false; + return true; } return false; diff --git a/src/prepare/webgl/WebGLPrepare.js b/src/prepare/webgl/WebGLPrepare.js index e1a9d2b..d6e5a70 100644 --- a/src/prepare/webgl/WebGLPrepare.js +++ b/src/prepare/webgl/WebGLPrepare.js @@ -43,13 +43,9 @@ if (!item._glTextures[renderer.CONTEXT_UID]) { renderer.textureManager.updateTexture(item); - - return true; } - // return false here - if it was already prepared it shouldn't count against the maximum - // number of uploads per frame - return false; + return true; } return false; @@ -72,13 +68,9 @@ if (item.dirty || item.clearDirty || !item._webGL[renderer.plugins.graphics.CONTEXT_UID]) { renderer.plugins.graphics.updateGraphics(item); - - return true; } - // return false here - if it was already prepared it shouldn't count against the maximum - // number of uploads per frame - return false; + return true; } return false;