allow multiple calculations per frame
This commit is contained in:
parent
f1f91dba89
commit
5ca4f24f4f
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user