Extensions

This section provides suggestions for extending Concurrent Actors to support additional features. These are simply recommendations, you'll probably have additional ideas of your own.

Interesting play

To make the simulation more interesting for the user, you can provide additional behaviors such as gravity or magnetic attractions.

Efficient screen updating

To perform more efficient screen updates, you can enhance the refresh mechanism. In the current design of this program, the entire simulation view is drawn when the simulation changes. You could modify this to update only changed or damaged areas resulting in smaller refresh areas.

Refresh times

In the current design of Concurrent Actors, refresh occurs at fixed intervals. This is often wasteful if nothing has moved. You could change the refresh times to be dynamically determined. With this enhancement, the refresh thread could examine all the actors and determine when the next move will occur.

Movement times

In the current design of this program, movement occurs at fixed intervals. If all objects are moving very slowly, they might not move enough during this interval to effect the onscreen display. You could change the movement times to be dynamically determined. With this enhancement, the movement thread could examine all moving objects to determine an optimal movement interval.

Collision behaviors

Collision behaviors are at the mercy of the movement thread. To be fully general, behaviors should be allowed to perform actions whenever they see fit. In the current design of this program, they can only affect the simulation when something moves.


[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