com.threerings.tudey.server.util
Class SceneTicker.DedicatedThread

java.lang.Object
  extended by com.threerings.tudey.server.util.SceneTicker
      extended by com.threerings.tudey.server.util.SceneTicker.DedicatedThread
Enclosing class:
SceneTicker

public static class SceneTicker.DedicatedThread
extends SceneTicker

Ticks the scenes on a dedicated thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.server.util.SceneTicker
SceneTicker.DedicatedThread, SceneTicker.EventThread
 
Field Summary
protected  LoopingThread _thread
          The thread on which we run.
 
Fields inherited from class com.threerings.tudey.server.util.SceneTicker
_actualInterval, _intervalAverage, _lastLong, _lastTick, _runQueue, _sarray, _scenemgrs, _targetInterval
 
Constructor Summary
SceneTicker.DedicatedThread(RunQueue runQueue, int targetInterval)
          Creates a new dedicated thread ticker.
 
Method Summary
protected  void start()
          Starts ticking.
protected  void stop()
          Stops ticking.
 
Methods inherited from class com.threerings.tudey.server.util.SceneTicker
add, contains, getActualInterval, remove, setTargetInterval, tick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_thread

protected LoopingThread _thread
The thread on which we run.

Constructor Detail

SceneTicker.DedicatedThread

public SceneTicker.DedicatedThread(RunQueue runQueue,
                                   int targetInterval)
Creates a new dedicated thread ticker.

Method Detail

start

protected void start()
Description copied from class: SceneTicker
Starts ticking.

Specified by:
start in class SceneTicker

stop

protected void stop()
Description copied from class: SceneTicker
Stops ticking.

Specified by:
stop in class SceneTicker