added possibility to limit draw rate, because vsync seems to be flawed