projects
/
the-worst-raytracer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Time each update.
[the-worst-raytracer]
/
tf.py
diff --git
a/tf.py
b/tf.py
index
4a7508d
..
394f300
100755
(executable)
--- a/
tf.py
+++ b/
tf.py
@@
-227,11
+227,14
@@
def main():
print 'initializing took %.3f sec' % (t2 - t1)
print 'accumulating'
print 'initializing took %.3f sec' % (t2 - t1)
print 'accumulating'
+ t3 = t2
for j in range(AA):
for i in range(AA):
sess.run(update, feed_dict={aa_x:i, aa_y:j})
for j in range(AA):
for i in range(AA):
sess.run(update, feed_dict={aa_x:i, aa_y:j})
+ t4 = time.time()
+ print 'took %.3f sec' % (t4 - t3)
+ t3 = t4
- t3 = time.time()
print 'took %.3f sec to render %d images' % (t3 - t2, AA*AA)
print 'finalizing'
print 'took %.3f sec to render %d images' % (t3 - t2, AA*AA)
print 'finalizing'