Skip to content

Proper update/draw rate loop handling with Pyglet 3#2845

Merged
Cleptomania merged 1 commit intodevelopmentfrom
pyglet3-loop-handling
Apr 24, 2026
Merged

Proper update/draw rate loop handling with Pyglet 3#2845
Cleptomania merged 1 commit intodevelopmentfrom
pyglet3-loop-handling

Conversation

@Cleptomania
Copy link
Copy Markdown
Member

Pyglet 3 has some changes with the event loop interval handling. Largely this isn't really changed much on desktop, but there are a lot of special considerations when running in a browser with pyodide. This basically adds a separate event loop that handles itself differently in the browser in order to achieve the same results as desktop, while being limited by the requestAnimationFrame rate of the browser, which is tied to the monitor refresh rate.

@Cleptomania Cleptomania merged commit 64caf4f into development Apr 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant