Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fast loop using update #513

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

dragoncoder047
Copy link
Contributor

mostly from #35 (comment) but can run multiple loops per frame, more up to date stuff etc

mostly if the old loop() was had too low an interval, or the game lagged, then the loop() would deadlock on something and freeze the whole browser window, it doesn't seem to do that anymore even when running 10,000 loops per second (>>framerate)

mostly from kaplayjs#35 but can run multiple loops per frame, more up to date stuff etc
Copy link

pkg-pr-new bot commented Nov 15, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/kaplayjs/kaplay@513

commit: 8e09dea

Copy link
Collaborator

@lajbel lajbel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lajbel lajbel merged commit ff6defd into kaplayjs:master Nov 15, 2024
2 checks passed
dragoncoder047 added a commit to dragoncoder047/kaplay that referenced this pull request Nov 15, 2024
@dragoncoder047 dragoncoder047 deleted the fast-loop-using-update branch November 15, 2024 14:53
lajbel pushed a commit that referenced this pull request Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: DONE
Development

Successfully merging this pull request may close these issues.

3 participants