Skip to content

Commit

Permalink
fix float overflow after rendering more than 17 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
Theverat committed Jun 16, 2018
1 parent f72ebd0 commit e325cbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engine/final.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ def _stat_refresh_interval(start, scene):
maximum = 16

minutes = (time() - start) / 60
return max(min(2**minutes, maximum), minimum)
if minutes < 4:
return max(2**minutes, minimum)
else:
return maximum


def _check_halt_conditions(engine, scene):
Expand Down

0 comments on commit e325cbd

Please sign in to comment.