only print information about cache hits if debugging is on
This commit is contained in:
parent
4c0a2e0748
commit
925c0b31f4
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ def rendertask(task):
|
||||||
|
|
||||||
frame = tuple(frame)
|
frame = tuple(frame)
|
||||||
if frame in cache:
|
if frame in cache:
|
||||||
print("cache hit, reusing frame {0}".format(cache[frame]))
|
if debug:
|
||||||
|
print("cache hit, reusing frame {0}".format(cache[frame]))
|
||||||
|
|
||||||
framedir = task.workdir + "/.frames/"
|
framedir = task.workdir + "/.frames/"
|
||||||
shutil.copyfile("{0}/{1:04d}.png".format(framedir, cache[frame]), "{0}/{1:04d}.png".format(framedir, frameNr))
|
shutil.copyfile("{0}/{1:04d}.png".format(framedir, cache[frame]), "{0}/{1:04d}.png".format(framedir, frameNr))
|
||||||
|
|
Loading…
Add table
Reference in a new issue