Re: [Flashcoders] Benchmark script or CPU detection
You can use a frame rate detection code. There are many ways to do this though. Here is one reliable technique: var lastValue:Number = new Date().valueOf(); var frameCounter:Number = 0; var frameRate:Number = 0; //not average, just the amount of frames entered in the last second function onEnterFrame(){ frameCounter++; if(new Date().valueOf() - lastValue=1000){ lastValue = new Date().valueOf(); frameRate = frameCounter; frameCounter = 0; trace(frameRate); } } On 5/24/06, Patrick Matte [EMAIL PROTECTED] wrote: Hi, does anybody know where i could find a script to detect a user's cpu ? I'm currently working on an application with lots of animation which uses a lot of cpu power. I would like to hide those animations for the low cpu users because the application jams... Thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Benchmark script or CPU detection
What I usually do is play an animation of moderate complexity for a hundred frames or so, and test how long it takes that clip to complete. Based on the scores from a few test machines, you can figure out how long it takes for an average machine to play the clip. If the end user's machine takes longer than that, you can turn off the complex animations. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: Wednesday, May 24, 2006 4:21 PM To: Flashcoders mailing list Subject: [Flashcoders] Benchmark script or CPU detection Hi, does anybody know where i could find a script to detect a user's cpu ? I'm currently working on an application with lots of animation which uses a lot of cpu power. I would like to hide those animations for the low cpu users because the application jams... Thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com