[haiku-3rdparty-dev] Re: Creating a fast (60 fps or so) periodic timer

  • From: Chris Roberts <cpr420@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Fri, 18 Sep 2009 02:34:09 +0000

On Fri, Sep 18, 2009 at 2:23 AM, Joseph Adams
<joeyadams3.14159@xxxxxxxxx> wrote:
>
> Thanks, though I forgot to mention that updating the game's logical
> state quickly and at the right rate isn't the issue, but rather
> getting the BView to invalidate quickly.  What I did in my original
> version for keeping the speed correct is, per screen update, calculate
> the time elapsed since the last screen update, then update the game
> state by the corresponding number of logical frames (512 logical
> frames per second).  Thus, I just need to be able to send rapid
> updates to my BView to redraw at 60 screen frames per second.  It
> doesn't even need to be that accurate.
>

Ok. I'm not sure I understand what you mean by "invalidate quickly".
Maybe someone else can answer.

--Chris

Other related posts: