Tweaks to get the perfect framerate