As you haven’t gotten a reply, I’ll share what I was thinking at first.
If you count the time between the frames, you can calculate your own fps.
import time
time_before = time.time()
# your code here
time.sleep(0.1) # Pretend it takes a tenth of a second per frame
time_after = time.time()
time_delta = time_after - time_before
fps = 1.0 / time_delta
print "%f fps" % fps
Which prints, around:
9.30343 fps
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/86e30ad5-e448-42dd-b577-ef5a9b6925a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/86e30ad5-e448-42dd-b577-ef5a9b6925a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.