Re: [dev] [st] Removing timeouts in main loop

From: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
Date: Sun, 16 Sep 2012 12:01:31 +0200

On Sun, Sep 16, 2012 at 11:51 AM, Aurélien Aptel
<aurelien.aptel_AT_gmail.com> wrote:
> - try to read data for SELECT_TIMEOUT ms max
> - if something was read, handle it in the term
> - if something was read and the last call to draw was more than
> DRAW_TIMEOUT ms ago then redraw.

In retrospect, the Right Thing would be to have the SELECT_TIMEOUT
only if something is waiting to be redrawn i.e. after a call to draw,
always use select() with a NULL timeout.
Received on Sun Sep 16 2012 - 12:01:31 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 16 2012 - 12:12:03 CEST