# Slow Computers

**URL:** <https://forum.kirupa.com/t/slow-computers/12707>\
**Category:** flash\
**Created:** [February 3, 2003, 8:45pm UTC](https://forum.kirupa.com/t/slow-computers/12707 "2003-02-03T20:45:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sorcerer](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Sorcerer](https://forum.kirupa.com/u/Sorcerer)\
**Post date:** [February 3, 2003, 8:45pm UTC](https://forum.kirupa.com/t/slow-computers/12707/1 "2003-02-03T20:45:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 9:52pm UTC](https://forum.kirupa.com/t/slow-computers/12707/2 "2003-02-03T21:52:39Z")

</div>

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:

```auto
if (movieFrameRate < 24) {
	this.heavyAnimation.stop ()
}

```

anyway … here’s the script. place it in your main timeline

```auto
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 =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 10:09pm UTC](https://forum.kirupa.com/t/slow-computers/12707/3 "2003-02-03T22:09:20Z")

</div>

Nice code.  
gonne use this to m8

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 10:09pm UTC](https://forum.kirupa.com/t/slow-computers/12707/4 "2003-02-03T22:09:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 10:25pm UTC](https://forum.kirupa.com/t/slow-computers/12707/5 "2003-02-03T22:25:51Z")

</div>

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 …

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 11:01pm UTC](https://forum.kirupa.com/t/slow-computers/12707/6 "2003-02-03T23:01:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2003, 11:26pm UTC](https://forum.kirupa.com/t/slow-computers/12707/7 "2003-02-03T23:26:52Z")

</div>

no problem Sorcerer 🙂 let me know how it goes …
