[cl-opengl-devel] Using idle events to drive Slime

Nikodemus Siivola nikodemus at random-state.net
Thu Oct 28 11:58:29 UTC 2010


I define

(defmethod glut:idle ((window glut:window))
  (swank::process-requests t))

to keep Slime responsive while the event-loop runs (when running
single-threaded)  -- which is nice enough, but a tad inelegant not
just because of the double-colon, but because it causes __every__
window to call PROCESS-REQUESTS.

I'm wondering if there should be a single global *IDLE-HOOK* (or maybe
REGISTER-IDLE-HOOK) in addition to the per-window method approach --
something which causes windows to automatically subscribe to Idle
events without registering themselves in *WINDOWS-WITH-IDLE-EVENTS*.

Cheers,

 -- Nikodemus




More information about the cl-opengl-devel mailing list