Fixed not using TargetFPS

Thanks to michl