mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Use milliseconds in sleep timeouts, not seconds
This commit is contained in:
parent
20520d2f69
commit
68f0e0aa9e
4
main.py
4
main.py
@ -192,7 +192,7 @@ def main(args):
|
|||||||
else:
|
else:
|
||||||
label.text += '.'
|
label.text += '.'
|
||||||
if args.sleep:
|
if args.sleep:
|
||||||
time.sleep(args.sleep)
|
time.sleep(args.sleep / 1000.)
|
||||||
|
|
||||||
pyglet.clock.set_fps_limit(30)
|
pyglet.clock.set_fps_limit(30)
|
||||||
pyglet.clock.schedule_interval(poll, 1/30.)
|
pyglet.clock.schedule_interval(poll, 1/30.)
|
||||||
@ -202,7 +202,7 @@ def main(args):
|
|||||||
for ftime, out in ifilter(None, anim.render_frames(times, sync=args.sync)):
|
for ftime, out in ifilter(None, anim.render_frames(times, sync=args.sync)):
|
||||||
save(args, ftime, out)
|
save(args, ftime, out)
|
||||||
if args.sleep:
|
if args.sleep:
|
||||||
time.sleep(args.sleep)
|
time.sleep(args.sleep / 1000.)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(description='Render fractal flames.')
|
parser = argparse.ArgumentParser(description='Render fractal flames.')
|
||||||
|
Loading…
Reference in New Issue
Block a user