don't crash if max framerate is 0

fixes #4221
clamp the max framerate setting to useful borders

and update on the fly
Merge pull request #4244 from Mailaender/fps-settings

Made the FPS settings fool proof