Thursday, March 27, 2014

FPS reduced!

A nasty surprise, a refactor in the code to move it from exploratory-functional to class-abstracted, has ended up with a reduction on fps in the capture.

In simple terms, the exploratory code which was a while loop and some processing inside was giving averages of 12fps. 

The "better" code, with classes, modular, extensible, cleaner, etc, gives 5fps.

This means that class interaction in the python code affects performance.

Optimisation is needed, some links to follow:



No comments:

Post a Comment