composite manager thoughts

Keith Packard keithp@keithp.com
Sat, 27 Dec 2003 17:38:57 -0800


Around 14 o'clock on Dec 27, Jim Gettys wrote:

> Yes, but you can set an upper limit on the rate of updating,
> going to a time based updating model, rather than going at a
> rate faster than human perception and using more machine resources
> than necessary.

Sure.  With a 1000Hz clock, we can do milli-second sleeps inside the 
server and do updates on short intervals to see how well that works.  The 
basic loop would then be:

	for (;;) {
		repaint
		queue timer event for correct interval
		flush
		await timer event && update event
	}

Should be pretty straightforward to try.

-keith