]> git.draconx.ca Git - liblbx.git/commit
lbxgui: Implement frame dropping for animation.
authorNick Bowler <nbowler@draconx.ca>
Thu, 11 Feb 2010 05:06:54 +0000 (00:06 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 11 Feb 2010 05:06:54 +0000 (00:06 -0500)
commit355bc49a264c582f780710a09338ed30dbeb1475
tree69bf25b285bf1ad5ae123d4126eec1801d6b0bf4
parent256cc05240e58eb10bb4ffd44e942ed28f00c27e
lbxgui: Implement frame dropping for animation.

Currently, if it takes longer than 1/15th of a second to draw a frame,
the next frame will be queued before it has a chance to finish, which
then takes longer than 1/15th of a second to draw, so the next one gets
queued, ad infinitum.

We do two things to solve this problem.  First, the timer runs at a
low priority so that a redraw doesn't get queued while a redraw is in
progress.  Second, the timer skips queueing any frames that have missed
their time.
src/gui/lbxgui.c