add framerate lock