![]() |
Timing and drawing ... UPDATED - Printable Version +- Murga-Projects Forums (http://www.murga-projects.com/forum) +-- Forum: Project Forums (/forumdisplay.php?fid=1) +--- Forum: MurgaLua - General (/forumdisplay.php?fid=2) +--- Thread: Timing and drawing ... UPDATED (/showthread.php?tid=59) |
Timing and drawing ... UPDATED - JohnMurga - 06-27-2007 08:16 AM Hi, There has been a lot of conversation around timing and drawing ... Use of wait (which isn't at all reliable for timing), and nasty busy loops. You will also find examples of the socket.sleep function, but this only gives you 1 second intervals ... murgaLua 0.5 will have a propper 1/1000 of a second sleep, and maybe timeouts, but what do you do now ... Try this (updated draw demo) Code: delay = 0.1 -- Delay is rounded up to closest 0.2 of a second.
RE: Timing and drawing ... UPDATED - mikshaw - 06-27-2007 10:21 AM Excellent! Now that animation is surely possible, i guess it's time to start playing around with some unnecessary eyecandy =o) Thanks very much for this. And thanks in advance for murgaLua.sleep() |