ActionScript 3.0 :: High CPU Usage And Program Slowing Down

Apr 16, 2009

I have helped write a program in AS3 that uses classes. We have 2 frames in our movieclip that consists of an ant moving. We have a class of ants and can create 15 instances of them and the program runs fine with the ants walking around looking for food and going back to a corner that is their nest and going back out again. The ants also respond to mouse movement if the mouse pointer is near an ant.

If we create more than 15 ants, then the program starts to slow down. If we have 30 ants on the screen, then there is noticable stuttering of the ant movement. The CPU usage on a P4 2.5Ghz Pentium is around 50%.

View 13 Replies


Similar Posts:


High CPU Usage When Playing Flv Files With Flash

Feb 21, 2009

As more and more FLV videos are moving to HD, I'm noticing high CPU usage and lots of dropped frames when playing FLV video in web browser with Flash 10. This is true even if the video isn't full screen. I've tried a variety of browsers (Firefox, I.E., Chrome) and the problem occurs on all of them so it's pretty clear it's a limitation in Flash.

Now my PC isn't high end (it has a Pentium M 1.86 GHz processor), but I can take those same FLV files and load them in something like Media Player Classic or Windows Media Player (when using ffdshow) and play the FLV files full screen with little or no drop in frames and an acceptable CPU rate.

This is especially annoying on sites like YouTube where I actually have to save the video and play it back in something other than Flash to have it play back at an acceptable rate. This doesn't work for other sites like Amazon.

Why is the CPU usage so high when decoding and displaying videos when compared to other media players?

View 1 Replies

ActionScript 2.0 :: Loading XML Takes High CPU Usage?

Jun 11, 2003

I am loading an XML file (fairly large document). It takes a high amount of my CPU(almost 100%). This prevents me from working on other applications. Also, it takes a lot of time to load.

reduce the CPU usage.

View 4 Replies

ActionScript 3.0 :: Double Buffer Program Is Slowing Down?

Sep 22, 2010

I have a small Dancing Lines program like an old Windows screensaver program and it appears to slow down after about 30 seconds to a minute.I "clear" my buffer by copying a screen sized black symbol to the buffer. If anyone has any ideas about how to make this more efficient and most importantly stop the slow down.

// Variablesvar x0:int;var y0:int;var x1:int;var y1:int;var x2:int;var y2:int;var x3:int;var y3:int;var dx0:int;var dy0:int;var dx1:int;var dy1:int;var dx2:int;var dy2:int;var dx3:int;var dy3:int;var counter:int = 0;var clearBuffer:Buffer = new Buffer();var[code].....

P.S. - Is there a way I can post my code in a smaller box with a scrollbar?

View 7 Replies

Actionscript 3 - Animated Background In Flash - High CPU Usage?

Feb 24, 2012

I've hired a freelancer, to make a design for my flash app. And everything was fine, untill I saw this. It was an animated background. It has about 100 tweened movie clips, that do pretty much the same - simple rotation tween, but cpu usage on that background only reaches 17-20%. Its high for such a small effect. I've tried to optimize it - removing all code, and leving just timeline based tween, but that didn't solve my issue.[URL]

View 2 Replies

ActionScript 3.0 :: High CPU Usage With Typical Flash Scene?

Feb 5, 2012

I'm building a GUI for a karaoke system which uses Flash IDE.

Im not doing the OOP method, if you ask me why, its becoz I code slower with OOP and I need this urgently.

Anyway, I had only created 3 scenes with several simple MovieClips in it and some png files as button icons.

When I try to publish it and run, i noticed it will just freeze my Flash IDE and I've checked the CPU Usage in TaskMgr, it shows over 50% usage.

The filesize for this FLA is just 992KB, so you can probably tell that it doesnt have much bitmap in it.

I am hoping someone in this forum could show me some light as I've already struggle for the past 12 hours with no luck at all.

View 1 Replies

Actionscript 3.0 :: High CPU Usage When Constantly Rotating Movieclips

Feb 24, 2009

I'm working on a new site and one of the things the client likes most is the idea of these gears that are constantly rotating on the screen. However, now that I have the mock-up design done, I'm noticing that the constant rotation requires a lot of CPU to maintain. Has anyone else experienced this and have you figured out a better method than the one I am using to rotate the movieclips?

[Code]...

View 2 Replies

Actionscript 3.0 :: Flash Video Playback - High Cpu Usage

May 12, 2009

I've been deploying video to the web via Flash for a couple years now and I was curious if anyone has experience with / knows if deploying video via a Flash Media Server or any other type of video centric server has a significant impact on performance playback? I've noticed lately that with YouTube content, often available in "HQ" or "HD" that the video playback suffers very marginally when switching to higher quality video. However, with video players I have developed, using HTTP progressive download, CPU usage often spikes during download of the video and decreases once it's been cached. I've also recently employed pseudo-streaming techniques with the help of XMOOV but this doesn't seem to have much of an effect on CPU usage during video download.

My video player was developed in AS3 and while it's not using a class based structure, it does follow general OOP techniques. Would a class based video player improve performance? Here is a link to a work in progress video player: [URL] Please try a couple videos and let me know if they play back smoothly and / or if you notice CPU spikes. Also note that the only video that makes use of XMOOV is the "Make a Wish" video as it's been injected with the necessary metadata.

View 7 Replies

IDE :: High Cpu Usage - Force The Flash To Do Garbage Collection?

Nov 16, 2009

my flash has lots of images and dispaly objects. Hence it costs high cpu usages. after using my flash for an hour, it is dieing.I am trying to reduce it. I have some questions here:

1. I create an array, or string at frame 1 for example, when I go back to frame 1, should I create a new array, or a new string?? Or is it better to make it empty array(eg:[]) or empty string("")? which way it reduces cup uasge more?

2. does anyone know how to force the flash to do garbage collection??

3. any other possible reasons that cause high cpu usage?

View 1 Replies

Professional :: Firefox Plugin Container High Cpu Usage And Crashing?

Jan 8, 2011

All three of my family's computers have been experiencing problems with the firefox plugin container. The container spikes the CPU for long, long, periods of time slowing overall performance noticably.The only way to address the problem is to kill the Firefox plugin container.When I kill the plugin container it kills Adobe Flash.I've tried clearing the flash cache from the Adobe troubleshooting site, deleting all cache applications, and changing settings.My family plays Farmville which is always hanging and can only be fixed by restarting the computer. Okay, maybe farmville is a bad app.

View 3 Replies

Media Server :: High CPU Usage With RTMFP Live Streaming?

Jul 29, 2011

There are 25 livestreams streaming to FMS4 server  by fmle3.2,and client number is 20, (FMSCore.exe)CPU usage is about 20%~40%,  how can i reduce cpu usage?
 
CPU: 2x E7320 2.13G

View 2 Replies

Flex :: Spark VideoDisplay With Long Wait High CPU Usage In Google Chrome (and Opera)

Sep 6, 2011

I've created a Flex website that plays a video using the Spark VideoDisplay component. When selected, the VideoDisplay loads in the PopUpManager.

This works fine in all the browsers, except Google Chrome take significantly longer to start playing, during which the CPU usage peaks, then goes back down once video starts playing.

I've traced the player states it goes through and they are as follows:

Loading ready (hangs for ages with high cpu) buffering playing (immediately after buffering, CPU usage goes down, video plays smoothly)

What could be causing this to temporarily hang for so much longer in Chrome? I thought I could expect the same functionality and behaviour throughout all the browsers, as Flash is simply a plugin that runs as a separate process?

Edit: It seems that it's the same in Opera too. Is there any commonality between the two that would explain this behaviour?

[Code]....

View 1 Replies

ActionScript 2.0 :: Make A High Score Table For A Flash Game Where EVERYONE See's The Same High Scores?

Oct 11, 2003

how can i make a high score table for a flash game where EVERYONE see's the same high scores?

eg.

Bill gets 1000 in USA
Ben gets 1002 in UK

they can see each others scores on a high score table.

View 7 Replies

Flex :: Flash - Total Memory Usage And TaskManager Memory Usage Are Different?

Aug 24, 2010

I wrote an application in flash AS3, and when I trace from flash the total memory usage of the total application is only about 9MB, But at the same time Task Manager Shows the memory usage as 110MB. Around 100MB difference.Flash Trace Method System.totalMemory difference of the Trace from the Beginning of the application to end of the application.

View 2 Replies

ActionScript 3.0 :: Add An Exit Button Onto Program So When Its Clicked It Exits The Program Completely

Nov 4, 2008

Im trying to add an exit button onto my program so when its clicked it exits the program completely.. I've tried some of the suggestions on the forums but they arnt working. what I have been using and its not working..

// CLICK to Exit
exit_Btn.addEventListener("mouseUp", goExit);
function goExit(evt:MouseEvent) {
fscommand("quit");
};

View 9 Replies

ActionScript 2.0 :: Start An Unrelated Program (such As Window's Media Player) From Inside Of A Flash Program?

Sep 29, 2010

Is there a way to start an unrelated program (such as Window's media player) from inside of a flash program?

View 2 Replies

ActionScript 2.0 :: Program A Timer For A Typing Tutorial Program?

Mar 24, 2003

I need to program a timer for a typing tutorial program. It needs to go to 5 minutes. When the timer gets to 5 minutes the movie has to go to frame 13 which displays the results of the typing test.

View 1 Replies

Actionscript :: Connection From Program To The Server Using XAMPP Server And Program In Flex?

Oct 26, 2010

i have the following code ]

[Code]...

but no connection established what is the reason behind not know help required and one more thing XAMPP is installed in D: drive.

View 1 Replies

ActionScript 2.0 :: Slowing Down A Transition?

Oct 13, 2009

i have this slider effect and would like to reduce the transition speed between images, thus the circles take longer time to pass, anyone can help me out?here is the link for downloading the flash file[URL]

View 1 Replies

ActionScript 3.0 :: Camera Slowing Down To 4 FPS?

Nov 27, 2008

I have a problem with the camera slowing down in my project.I thought it could be because of the complexity and memory consumtion of this work, so I created a completely new movie, typed such code:

quote:

var camera:Camera = Camera.getCamera();
var video = new Video(camera.width, camera.height);
video.attachCamera(camera);
addChild(video);

[code]....

And... this time the camera's fps stayed 25fps all the time. To be honest - I really don't know why :| I mean, I'm happy the fps stayed stabily at the level, but I don't know what to do in the mentioned, complex, project to make the fps faster. I can't just add the trace line.

View 5 Replies

ActionScript 1/2 :: Slideshow Slowing Down?

Jul 11, 2009

I have a slideshow on the opening page of my website and about a minute and a half in, it starts to slow way way down. It looks choppy and really bad - I had the slide in its own file and it was fine - then I made it into a single movie clip and cut and paste it into the website on the first frame so it would play automatically right away - then it started doing the slow thing when I previewed it

View 1 Replies

ActionScript 3.0 :: Flash Is Slowing Down After While?

Nov 24, 2009

I have a gallery flash that loads a pictures from xml. The pic slides on from the right. When btnNext is clicked it slides off to the left and the next pic slides on from the right. There is also a btnBack which slides on the previous pic. There are around 200 pictures.

I have now spent weeks on and off trying to figure out why it slows down and starts to chug! I figured out, with the help of individuals on this forum, how to remove the pictures when they are off stage. It definitely helped but its not yet resolved.
 
This flash is quite processor intensive with the amount of graphics. But the thing is, when the flash start off it goes fine but after so many pictures it starts to chug. Which seems to me that there is somehting it is not GCing or something of the sort!

[Code]...

View 2 Replies

ActionScript 3.0 :: Slowing Down While Loop?

Aug 20, 2009

I'm currently creating a rewind function that makes a video go to a certain frame number when a button is clicked. The issue is that the code is shooting through the frames too quickly. Is there any way to slow this down?

Code:
stop ();
slider.minimum = 1;
slider.maximum = target.totalFrames;
slider.liveDragging = true;

[Code].....

View 3 Replies

ActionScript 3.0 :: FPS Slowing Over Time

Mar 24, 2012

I created a very simple application that increments a counter and displays said counter on the stage. At around 18,000-20,000 iterations, I noticed a serious drop in FPS. Here's is the entire [code]...

View 2 Replies

ActionScript 2.0 :: Slowing Down A Movie?

May 20, 2005

Is there a way in AS to double the number of frames instead of manually going back into the movie and adding more frames or slowing down the frame rate? I need to slow this movie down, but I don't want to sacrifice quality

View 9 Replies

ActionScript 3.0 :: Slowing Down While Loop

Aug 20, 2009

I'm currently creating a rewind function that makes a video go to a certain frame number when a button is clicked. The issue is that the code is shooting through the frames too quickly. Is there any way to slow this down?[code]

View 1 Replies

ActionScript 3.0 :: Flash Is Slowing Down After While

Nov 24, 2009

I have a gallery flash that loads a pictures from xml. The pic slides on from the right. When btnNext is clicked it slides off to the left and the next pic slides on from the right. There is also a btnBack which slides on the previous pic. There are around 200 pictures.

how to remove the pictures when they are off stage. It definitely helped but its not yet resolved.

This flash is quite processor intensive with the amount of graphics. But the thing is, when the flash start off it goes fine but after so many pictures it starts to chug. Which seems to me that there is somehting it is not GCing or something of the sort!

View 4 Replies

ActionScript 2.0 :: [MX] MovieClip Slowing Down?

Sep 14, 2003

I have a problem with my movie clips slowing down when another movieClip is being played. I have the interface and transition completed, but everytime u click a button, the transition element moves extremely slow, because my buttons themselves contain movieClips. Is there anyway to have the movieClips move at proper speed, even if they overlap one another, and play at the same time

View 2 Replies

CS3 Slowing A Clip Played With The FLVPlayBack

Apr 20, 2009

I imported Embaded Movie to Flash (that won't be on my TimeLine to save space), and i m using the FLVPlayBack to run it.

My problem is that the player plays the movie too fast for displaying.

Is there a way i can slow down the movie?

View 1 Replies

Slowing The Scroll On Flash Website?

Nov 30, 2009

I editted it from a template and I find that the scroll seems to be too fast. Is there a way to slow it down or make it clickable instead? The website isI dont have a css file, it is all done within an fla

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved