[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
DisplayFrequency
From: |
Manor Askenazi |
Subject: |
DisplayFrequency |
Date: |
Thu, 22 Aug 96 20:33:25 MDT |
> ... is it possible to avoid redrawing the entire screen each step?
Hi Patrick!
The heatbug code contains an example of what you are looking for.
The displayFrequency variable is used to control the repeatInterval
of the displaySchedule (in HeatbugObserverSwarm):
[displaySchedule setRepeatInterval: displayFrequency];
This means that while ModelSwarm events occur every step, ObserverSwarm
events happen every displayFrequency steps:
time: 0 1 2 3 4 5 6 ...
ModelSwarm (repeatInterval of 1): |----|----|----|----|----|----| ...
ObserverSwarm (repeatInterval of 3): |--------------|--------------| ...
Where "|" is the actionGroup event as described in the code (either
displayActions or modelActions depending on the Swarm).
Hope this helps,
Manor.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- DisplayFrequency,
Manor Askenazi <=