allow multiple calculations per frame

This commit is contained in:
Jonas Weinz 2017-05-07 19:28:52 +02:00
parent f1f91dba89
commit 5ca4f24f4f

View File

@ -255,9 +255,14 @@ def main():
if (calc == 0): if (calc == 0):
counter += 1 counter += 1
if counter > logic_frame_pause: if logic_frame_pause >= 1:
update_ant() if counter > logic_frame_pause:
counter = 0 update_ant()
counter = 0
else:
# multiple calculations per frame:
for i in range(int(1 / logic_frame_pause)):
update_ant()