# Optimisation of performance/fluidity

**URL:** <https://forum.kirupa.com/t/optimisation-of-performance-fluidity/164344>\
**Category:** flash\
**Created:** [September 30, 2005, 11:14am UTC](https://forum.kirupa.com/t/optimisation-of-performance-fluidity/164344 "2005-09-30T11:14:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabbio](https://avatars.discourse-cdn.com/v4/letter/f/f1d935/32.png) [@fabbio](https://forum.kirupa.com/u/fabbio)\
**Post date:** [September 30, 2005, 11:14am UTC](https://forum.kirupa.com/t/optimisation-of-performance-fluidity/164344/1 "2005-09-30T11:14:59Z")

</div>

I have to optimise a movieclip that changes the position of an number of other movieclips.

[http://fabio.antanix.net/floater/working/v0.2.html](http://fabio.antanix.net/floater/working/v0.2.html)

I’ve initially implemented this by wrapping my “MOVING” code in the **onEnterFrame** method, now I’ve changed for a function passed to setInterval… is more fluid… but WHY?

Can you check my code, is it my algorithm which is slow? is it the implementation? is the nature of the problem?

[http://fabio.antanix.net/floater/working/](http://fabio.antanix.net/floater/working/)

Any hint would be apreciate

Cheers  
Fabio
