If statement

Prevent unnecessary drop of framerate to < 5 fps