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
Similar Posts:
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
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
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
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
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
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
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
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
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
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
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
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
Jan 27, 2011
ive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.
[Code]...
View 1 Replies
Jul 1, 2010
It will basically walk you through the windows to perform a typical setup, with some branching off for special cases. Essentially a main series of screen shots with text that you can scroll through using arrows, with links off to other screen shots or sequences as need. My boss wants it to be "hip and flashy", so wants me to look into Flash. But is that the best tool to use for this ? In all the Flash tutorials I have been watching I haven't seen anything that looks like that kind of application.
View 1 Replies
Jan 20, 2011
do I need to do anything different in parsing MRSS code vs. a normal XML file? It looks like it is different and I need to get something working soon.
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:bc="http://www.brightcove.tv/link" [code]....
View 4 Replies
Apr 10, 2004
I'm making a site in dreamweaver, with a flash menu. on that flash menu I have buttons that load a external text file and applies CSS to it before showing it. All this is well, BUT, the site is in Norwegian, and some of the letters that is typical of the Norwegian alphabet won't show,( it's just boxes)and some of the nearby letters dissapear to.
View 3 Replies
Sep 13, 2004
Check out this code:
[CODE]...
everything here is fine. It opens finely. But... i want to pass parameters where if i click a button in html page My.swf should open a particular scene called 'Scene 2' rather than scene 1. i tried
[CODE]...
View 2 Replies
Apr 8, 2010
I've been doing a number of pretty basic flash banner ads at the typical advertising size (728x90, 300x250, etc.) but the client wants to throw in some video for this upcoming batch. I've already been given the .flv movie file. It's about a minute long at 3 mb, but I'm only going to use about 4 seconds of it. My question is what is the routine/typical route to take when adding video to banners but also keeping under the file size limitations (around 37k)? I did some brief research and read about progressive downloading but wasn't sure what the typical direction was when delivering files like this to the vendors.
View 2 Replies
Jun 8, 2005
I am trying to preload an mp3 file dynamically while showing the typical 'percentage loaded' in a dynamic text box. However for some reason, the percentage just doesn't count up - it freezes on 100% even though the mp3 file is still loading. I have included the code that I'm using below. Also, does anyone know what would be the best way to adjust this code so that I could preload multiple mp3 files at the same time or one after another?
[Code]...
View 2 Replies
May 25, 2010
Currently when I load my presentation that I have just recently created and testing I'm getting a HUGE spike in my cpu usage.
I'm running an i5 2.4, and it's nearly taking up 100%, a friend of mine is running a core 2 duo and it's taking up 100% of the cores.
What is a proper way to optimize for these occurances? I don't have any preloaders up and running yet.
Here is the link to the site.
[URL]
View 1 Replies
Jun 15, 2010
I'm user of relatively weak computer (pentium IV 3.0 with hyper-threadingiem) but with a bit newer graphic card - asus radeon HD4650I'm not big new games fun, I'm useing my hardware most to internet access so I would rather not to buy new computer in the near future. But also I would like to have possibility to watch flash movies fluently on full screen (eg. youtube, video streeming). Unfortunatelly, till now, it was pretty weak. I got hope that afther new flash release (lately), which should use computing power of graphic card and making CPU work lighter.
Unfortunatelly, afther flash update (10.1) I haven't noticed any changes - everything work in the same way (not fluently) as at old flash. CPU usage is still ca.100% and GPU usage is 0% (I can see it in control panel) What is wrong? Is it this version of flash what should use GPU or it is not yet? Maybe I should configure something more? Or is it possible that I made something wrong? I've tried few times, made lots of work and combinations (instaling and reinstaling different versions of flashs, graphic card drivers, browsers changing etc) and still nothing.
View 1 Replies
Feb 25, 2011
Is there some way to get the cpu usage in flash or adobe AIR?
I'm using ActionScript 3.0 and flash CS5.
View 1 Replies
Nov 30, 2010
I am try to go from a main scene to a second scene in Flash. The code work just fine to take me there, but when the scene appears it seems that I lose focus with the scene and the actions that should runs doesn't until I click once on the screen. Now I am using a button to navigate from one scene to another. If I use a movieclip instead of a button then everything works just fine. In my second scene I am using the keyboard to control different things in the scene.
View 1 Replies
Jul 6, 2009
How much memory in bytes can Flash normally handle? I have a fairly involved program that is running at 39MB usage and now may be causing some memory issues (I'm not sure it's the memory, since it was running smoothly up until I made a few code changes and now Flash freezes after making those changes). But anyway, I have been wondering about memory usage and Flash CS3 and felt like this was a good topic to dicuss. Is there a way to force an increase in available memory for Flash?
View 2 Replies
Aug 20, 2009
I am doing a flash getting data from mysql. My Database is quite big (200+MB) with lots of datas. here is my problems, after using my flash for some searching, maybe because of calling mysql to get too much data (like getting 900 records with their names and images), my memory usage increase to over 2 GB. Thus my flash is dead. I need to restart it. Is there any ways to reduce the memory usage?? Or it might be some other problems. I am quite new at my job, so it might be something that I forget to close ot remove.
View 2 Replies
May 20, 2009
I have a flash presentation thats for a supermarket TV screen. Its big in file size 9.6MB. When I go file/export/export movie to quicktime and use the animation settings the file plays but leaves trail lines behind, skips frames and looks crap.
The quicktime settings I've used are either:
Animation
Quality Best
Millions of colours
All Key frames
24fps
or
DV - PAL
Frame rate 24fps
Quality Best
I need it to look high quality but I am not sure what settings to use.
View 1 Replies
Sep 28, 2011
So I recently switchs to a new computer. Installed flash and got everything up and running. On the old computer, I was forced to set the jvm.ini to use -Xmx512M in order to run the application (it's kinda big) But now, if I set it 512, flash will not open... I get the Java enviroment error.
Now, I lower the xmx value more and more and more until flash FINALLY opens without an error... I load up my application and when I try to run it, I get the java memory heap error and it tells me to adjust the jvm.ini file. Anyone know how I can get flash cs5.5 on a windows 7 64bit machine with 8 gigs of ram to open with a larger jvm.ini value?
View 4 Replies
Nov 12, 2010
Do anybody know about how flash player render the content when we do the scaling? Let's say i have 2 flash swf file. swf1 : the stage size is 2000 px x 2000 px. + 1 movieclip with 100% transform swf2 : the stage size is 1000 px x 1000 px. + 1 movieclip with 50% transform Let's say there is a movie clip on swf1. So i copy the same movie clip to 1000 px x 1000 px file and transform the movieclip to 50%. So it will look the same if i scale the swf2 x 2. If there is any different on swf1 and swf2 in team of CPU usage or etc?
Like is it true when playing swf2 need more CPU usage than swf1 because swf2 need to do the scaling but swf1 not. Just not sure which way i should develop the content. Because i have to make some content and the width/height are about 3000 px. So i am thinking if i should set the stage close to limit 2880 or just make the content like swf2. And my concern is if it will use more CPU when do the scaling.
View 3 Replies
Oct 16, 2010
When I run my swf locally in the Flash Player application, its memory usage starts at around 50 Mb, and though it definitely fluctuates, it generally stays centered at around 50 Mb. Then I embed the same swf in an html page and run it in my browser (firefox). Now the memory usage starts at 20 Mb, but increases at a near constant rate until it is over 100 Mb and I need to stop it. The swf is essentially unusable in the browser because of this.
What could be the cause of this huge difference in behavior? Where should I even begin when trying to make the swf functional in the browser? EDIT: I have found what was causing the problem (sort of). A certain type of object, which gets spawned a lot during the game, doesn't respond to removeChild() correctly. As a result these types of objects were building up on the stage (but invisible) and causing the memory usage to skyrocket. This doesn't occur when I test it in CS4 or in the standalone flash player application, only in the browser. It seems like a Flash bug.
View 2 Replies