Refresh subsystem

The Refresh subsystem maintains a thread that decides when to refresh the screen. It enforces a maximum, regular frame rate. (If the operating system slows with other processes, the frame rate might fall below the maximum.)

All actors are refreshing objects, inheriting from MRefreshable. All refreshing objects are known by the single refresh thread, which redraws the objects when it sees fit.


The TRefreshThread class implements a thread that periodically refreshes an offscreen buffer to reflect the current state of the simulation. There is
only a single instance of this class owned by the TUniverse instance. The MRefreshable class defines an abstract protocol for use by instances of the TRefreshThread class.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker