Really, this should be tied to the idle event like everything else.
There's no point testing more often - 5ms was just a guess, in
retrospect far too small. 14FPS is ~71ms per frame so 50 ms the right
order of magnitude :P
P T Withington wrote:
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;
}
--
Regards,
Max Carlson
OpenLaszlo.org