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

"Consistent" frame advance #32

Open
fengb opened this issue Jan 13, 2020 · 0 comments
Open

"Consistent" frame advance #32

fengb opened this issue Jan 13, 2020 · 0 comments
Labels
enhancement New feature or request video

Comments

@fengb
Copy link
Owner

fengb commented Jan 13, 2020

Holdover from #30

Prior implementation simply ran a Gameboy frame every requestAnimationFrame(). This worked wonders for 60hz monitors, but it's really silly for 144hz.

Potential solution:

  1. expose stepTime()
  2. set MAX_SKIP_MS to be exactly 1 frame (16.742706 ms)
  3. profit!
@fengb fengb changed the title "Consistent" frames "Consistent" frame advance Jan 13, 2020
@fengb fengb added enhancement New feature or request video labels Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request video
Projects
None yet
Development

No branches or pull requests

1 participant