Flash and CPU Usage..resource crunch
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Macromedia Flash Server > Flash and CPU Usage..resource crunch




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Flash and CPU Usage..resource crunch  
Varun Dixit


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-05-05 10: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






[ Post a follow-up to this message ]



    Re: Flash and CPU Usage..resource crunch  
Simon Skrødal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-08-05 07: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@pu
blic.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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register