Without this change, when I load the component sampler, my cpu gets pinned and nothing ever succeeds in loading. It seems like the player goes into an infinite loop handling and rescheduling these timers. Is my change reasonable? What made you pick 5ms in the first place?

===================================================================
--- WEB-INF/lps/lfc/kernel/swf9/LzSprite.as     (revision 10508)
+++ WEB-INF/lps/lfc/kernel/swf9/LzSprite.as     (working copy)
@@ -574,7 +574,7 @@
           var oRect:Rectangle = asset.getBounds( asset );
           if (oRect.width == 0 || oRect.height == 0) {
// it can take a while for new resources to show up. Call back until we have a valid size.
-            setTimeout(this.__resetframe, 5);
+            setTimeout(this.__resetframe, 50);
             return;
           }


Reply via email to