Add quick debug option

This commit is contained in:
Steven Robertson 2011-10-03 17:10:38 -04:00
parent 46c6074b92
commit 6959729ea1

View File

@ -40,6 +40,10 @@ def main(args):
genome_ptr, ngenomes = pyflam3.Genome.from_string(fp.read())
genomes = cast(genome_ptr, POINTER(pyflam3.Genome*ngenomes)).contents
anim = Animation(genomes)
if '-g' in args:
anim.compile(keep=True,
cmp_options=('-use_fast_math', '-maxrregcount', '32', '-G'))
else:
anim.compile()
anim.load()
for n, out in enumerate(anim.render_frames()):