Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pyglet - Control FPS
import pyglet
screen = pyglet.window.Window(800,600)
def update(dt):
#update objects here
if __name__ == "__main__":
pyglet.clock.schedule_interval(update, 1/120.0)
pyglet.app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment