Limit framerate to reduce cpu usage.

Signed-off-by: Janne Hakonen <janne.hakonen@oss.tieto.com>