FPS degradation fix

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Merge pull request #141 from vogel/fps-drop-fix

FPS degradation fix