homepage Welcome to WebmasterWorld Guest from 54.237.125.89
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Flash menu using up 95-100% CPU cycles on slower machines
Help! Only just came across this problem!
Mikeboy




msg:1565691
 12:40 am on Mar 13, 2004 (gmt 0)

I've made a promotional CD-ROM for my uni project. It's made of HTML, with Flash buttons and a Flash menu.

I have a menu at the top of the page, and an Iframe below it. All scroll bars disabled, so I therefore have Flash buttons using actionscript/ JavaScript to scroll the content in the Iframe up and down.

It all works perfect on my computer and a fair few others I've tried it on that have sufficiently fast processors.

But a few computers I've tested it on now it has suffered very poor performance. It is very unresponsive, and takes 10s of seconds to scroll the Iframe down, rather than like half a second. And it is all slow and juddery. It is the Flash menu which is using up nearly 100% of the cpu cycles. It does this on my old notebook computer that is only a 600 MHz celeron.

But it also did it on my dad's computer (2 GHz+) , - just because there were a couple of applications open in the background!

GGRRRRRRRRR :@

Can I do anything about this, or will I just have to say that the application requires say at least a 1 GHz processor?

Thanks so much in advance

Mike

 

Mikeboy




msg:1565692
 12:53 am on Mar 13, 2004 (gmt 0)

Ok I've just narrowed down the problem

IT is because I set the menu to transparent using that Wmode thing. I had a photo background showing through.

I dont suppose there is anyway around this? That is the only way - to keep is opaque?

Is it worth having two buttons, letting the user decide which version to enter - i.e. one for CPUs below 1.5 GHz, and another for 1.5+?

Mmmmmm

HarryM




msg:1565693
 1:25 am on Mar 13, 2004 (gmt 0)

It's not just the speed of the processor that you need to consider, but also the speed of the OS. Win2000 and XP have a 10ms (or so) cycle time, whereas Win98 and ME takes about 50ms. (I forget the exact figures.) Which means 2000 and XP are running your application three times as often as 98 and ME.

bird




msg:1565694
 10:26 am on Mar 13, 2004 (gmt 0)

You need to reduce the FPS rate of your flash movie(s).
It's absolutely sufficient to show 5 or 6 frames per second for most purposes. The default Flash uses is significantly higher, and usually overkill.

Mikeboy




msg:1565695
 10:54 am on Mar 13, 2004 (gmt 0)

Harry I'll mention that in my thesis, it'll look cool. Thanks

Bird - That's perfect. It was using 35 FPS! - I'll change it later!

Thanks again both :)

benihana




msg:1565696
 1:06 pm on Mar 13, 2004 (gmt 0)

using that Wmode thing

i would have thought this is the issue, not the frame rate.

could you make the menu components semi transparent, and put your photogrpah on the bottom layer in flash? if its authored like that in the first place, instead of being told to be transparent by the browser retrospectively, it may take some of the pressure off the processor.

5-6 fps

unless the movie is hugely complex, this shouldnt be an issue.

i have a 30 fps fairly mathematically intense game and it runs fine on athlon 1.2ghz/256 ram with photoshop, imageready, dreamweaver opera and flash all running.

it will be worth looking through your code for redundent processing tasks, e.g. are you deleting all onEnterFrame processes when there no longer needed? are there any feedback loops?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved