BusyRepaintExample -- avoiding an overly
busy repaint loop by sleeping between calls to repaint.
On either a SPARCstation 5 or 20, the minimum workable sleep
time is 5 milliseconds. Note also that this applet runs animation
in a separate thread.
Experiment:
- If possible, run a performance monitor at the same time
as this applet.
- Change the sleep time parameter to test your system's
behavior under pressure.
The source.