I am working on a cd project right now that will fun a projector file, some of my animations in this project run fine on newer machines. But when I test them on older machines (under 400mhz processor) the frame rate takes a huge hit and the animations look terrible. I am wondering if there is any way to get the cpu speed of the machine into flash to determine if the computer should play the animations or display the movie without the heavier animations.
i was searching for a script a saw to get the current frame rate of your movie … i couldn’t find it so i wrote this one
i guess you could add an [color=red]if statement[/color]. example:
if (movieFrameRate < 24) {
this.heavyAnimation.stop ()
}
anyway … here’s the script. place it in your main timeline
MovieClip.prototype.getFrameRate = function () {
movieTime = getTimer ()
movieFrame = this._currentframe
if (!saveValues) {
savedTime = movieTime + 1000
savedFrame = this._currentframe
saveValues ++
}
if (movieTime >= savedTime) {
movieFrameRate = movieFrame - savedFrame
trace (movieFrameRate)
delete saveValues
}
}
this.onEnterFrame = getFrameRate
hope it helps =)
Nice code.
gonne use this to m8
That’ll probably just boggle them down even more…
The less computations you need the better… Unfortunately for you… You mgiht have to lower the quality settings…
See if you can run the animations fine on Medium or Low setting by right clicking the movie and seleecting them… If they still run sloppy… I’d suggest optimizing your whole animation.
i’ve tested the script at 12, 24, 36, 48, 60, 72, 84, 96, 108 and 120 fps with some 3d animations made in swift. it made no difference in performance …
Thanks, looks like that will work, as far as lowering quality, the animations are transition effects that involve high quality pictures. I will give this script a try and see how it works. Should be able to add an if statment or two and make it do what I want. Thanks again.
no problem Sorcerer let me know how it goes …