TimerManager
Defined In: | timer.js |
Class: | TimerManager |
Extends: |
Property | Defined By | |
---|---|---|
interval : (Wiki Page)
Interval after which to execute the function TimerManager.f() next time it's run;
changed every frame based on measured ...
Interval after which to execute the function TimerManager.f() next time it's run;
changed every frame based on measured lag.
|
TimerManager TimerManager | |
last_date : (Wiki Page)
Date of last execution of TimerManager.f(), in milliseconds...
Date of last execution of TimerManager.f(), in milliseconds
|
TimerManager TimerManager | |
sequence : (Wiki Page)
Sampling pattern to make a best-guess at
what the next interval should be....
Sampling pattern to make a best-guess at
what the next interval should be.
|
TimerManager TimerManager | |
spacing : (Wiki Page)
Factor by which to space out executions. 2 means double the measured interval....
Factor by which to space out executions. 2 means double the measured interval.
|
TimerManager TimerManager | |
times : (Wiki Page)
The recorded intervals of the last 100 executions. We sample from this to
make a good guess at what the next interval sh...
The recorded intervals of the last 100 executions. We sample from this to
make a good guess at what the next interval should be.
|
TimerManager TimerManager |
Method | Defined By | |
---|---|---|
bound_run( ) : void (Wiki Page)
Binds the scope of TimerManager.run() to TimerManager...
Binds the scope of TimerManager.run() to TimerManager
Parameters:
|
TimerManager TimerManager | |
run( ) : void (Wiki Page)
Records Dates for next interval measurement, runs TimerManager.f() with proper
scope (TimerManager.context), creates a s...
Records Dates for next interval measurement, runs TimerManager.f() with proper
scope (TimerManager.context), creates a setTimeout to run itself again in
TimerManager.interval milliseconds.
Parameters:
|
TimerManager TimerManager | |
sample( ) : void (Wiki Page)
Samples from recorded intervals to make a best-guess at
what the next interval should be....
Samples from recorded intervals to make a best-guess at
what the next interval should be.
Parameters:
|
TimerManager TimerManager | |
setup( Function f, Object c, Number s, Number i ) : void (Wiki Page)
Sets up TimerManager to run function f in context c every interval i;
defaults to c of TimerManager and i of 10. You pro...
Sets up TimerManager to run function f in context c every interval i;
defaults to c of TimerManager and i of 10. You probably want to pass the scope
of the function's parent class as c, as: TimerManager.setup(Foo.function_name,this)
Parameters:
|
TimerManager TimerManager |
This class has no events
Event | Defined By |
---|