I believe there is something like this already in place!

-- taken from: http://jqueryjs.googlecode.com/svn/trunk/jquery/src/fx.js

                        timerId = setInterval(function(){
                                var timers = jQuery.timers;

                                for ( var i = 0; i < timers.length; i++ )
                                        if ( !timers[i]() )
                                                timers.splice(i--, 1);

                                if ( !timers.length ) {
                                        clearInterval( timerId );
                                        timerId = undefined;
                                }
                        }, 13);


which to me looks like every 13ms a new step will be performed, which turns
out to be ~77 frames a second.

Perhaps a configuration option that would allow for different frame rates?

Cheers,
-- Elijah

On Mon, Jun 1, 2009 at 5:06 PM, dnuske <[email protected]> wrote:

>
> Hello everybody or every robot around,
> I was using Animate for a while and I foud one thing that can be
> improved, that is FPS control,
> let me explain:
> as the way Animate is constructed, it uses all the procesor available,
> not one browser (as far as I know) has FPS limit.
> This turns out that having a simple bubble moving around the page
> makes a hot radiator from the processor.
> The Idea is to have a FPS control, limited of course in base of time
> elapsed for every loop jquery redraw the animation.
>
> What do you think out there?
>
> *dnuske*
> from Argentina
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to