[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Sleep
- From: <jgiors@...>
- Date: Wed, 13 Oct 2010 11:17:41 -0700
> -------- Original Message --------
> Message: 4
> Date: Wed, 13 Oct 2010 19:20:51 +0200
> From: Henning Diedrich <firstname.lastname@example.org>
> Subject: Sleep
> To: Lua mailing list <email@example.com>
> Message-ID: <4CB5EA73.firstname.lastname@example.org>
> Content-Type: text/plain; charset="iso-8859-1"
> Hi list,
> is there a sleep function that is
> - non-busy
> - allows for ctrl-C
> - doesn't get stuck
> - does not require a C extension
> I tried busy, system call and sockets from =
> http://lua-users.org/wiki/SleepFunction for the above reasons they don't =
> work for me.
> Is there a rock offering a simple C-programmed sleep?
> It's for a very simple game world tick with the focus on demonstrating =
> (other) principles, and ease of getting to run oneself.
Since you mentioned this is for a simple game... Are you using a
game-related library, like SDL? If so, check the Lua wrapper of your
game lib for a sleep function. For example, SDL provides SDL_Delay().
Three Eyes Software