|
Home > Archive > Macromedia Flash Server > August 2005 > Flash and CPU Usage..resource crunch
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Flash and CPU Usage..resource crunch
|
|
| Varun Dixit 2005-08-05, 5:46 pm |
| Hi all,
In continuation with the problem I was having yesterday, I have got most
of it taken care off, but whenever I view my results, the CPU usage goes
to 100 % and it chews up all my resources. I was thinking if there was
some problem with my FOR loop, or could there be a better way to do it.
It works fine for first 4-5 seconds then the scroller just slows down
and the usage shoots upto 100%..
I have included my code for quick reference..
function qGetNewsHeadlines_Result(result)
{
theLength = result.items.length;
for (i=0; i<theLength; i++)
{
//trace(result.items[i].Title);
//_root.site_titles=result.items[i].Title;
_root.site_titles+=result.items[i].Title+"\n"+"\n" ;
}
}
This is all being done using CFC and Remoting which works fine. My SWF
file size is just 12 KB
Any suggestions would be appreciated.
Thanks
Varun Dixit
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Simon Skrødal 2005-08-08, 2:45 am |
| Hi Varun,
What did your trace statements in the FOR loop tell you? How many items in
your result?
When tracing, did you find that the CPU usage hits 100% when in that loop,
or might there be other bits of your code that causes it?
Sounds to me like this is no FlashCom-related problem, might there be some
inconsistency with your movieclip (i.e. not code) that causes the problem?
Cheers
Simon
----- Original Message -----
From: "Varun Dixit" <vdixit-ifrIndToBmI@public.gmane.org>
To: "Flash Comm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Saturday, August 06, 2005 12:26 AM
Subject: [FlashComm] Flash and CPU Usage..resource crunch
> Hi all,
>
> In continuation with the problem I was having yesterday, I have got most
> of it taken care off, but whenever I view my results, the CPU usage goes
> to 100 % and it chews up all my resources. I was thinking if there was
> some problem with my FOR loop, or could there be a better way to do it.
>
> It works fine for first 4-5 seconds then the scroller just slows down
> and the usage shoots upto 100%..
>
> I have included my code for quick reference..
>
>
>
>
> function qGetNewsHeadlines_Result(result)
> {
>
> theLength = result.items.length;
>
>
> for (i=0; i<theLength; i++)
> {
> //trace(result.items[i].Title);
> //_root.site_titles=result.items[i].Title;
>
>
> _root.site_titles+=result.items[i].Title+"\n"+"\n" ;
>
>
> }
>
> }
>
> This is all being done using CFC and Remoting which works fine. My SWF
> file size is just 12 KB
>
> Any suggestions would be appreciated.
>
> Thanks
> Varun Dixit
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|
|
|
|