fixed over fps on OSX and Windows