Skip to content

Commit

Permalink
Adjustable compositor framerate.
Browse files Browse the repository at this point in the history
  • Loading branch information
froggey committed Nov 4, 2015
1 parent 61787ad commit 907708a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/compositor.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1047,9 +1047,11 @@ A passive drag sends no drag events to the window.")
(sys.int::log-and-ignore-errors
(process-event (mezzano.supervisor:fifo-pop *event-queue*)))))

(defvar *compositor-update-interval* 1/60)

(defun compositor-heartbeat-thread ()
(loop
(sleep 1/60)
(sleep *compositor-update-interval*)
;; Redisplay only when the system framebuffer changes or when there's
;; nonempty clip rect.
(when (or (not (eql *main-screen* (mezzano.supervisor:current-framebuffer)))
Expand Down

0 comments on commit 907708a

Please sign in to comment.