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

Queued line draw are significantly slower in Firefox (Gecko) #6

Open
coreyshuman opened this issue Jul 13, 2021 · 0 comments
Open

Queued line draw are significantly slower in Firefox (Gecko) #6

coreyshuman opened this issue Jul 13, 2021 · 0 comments

Comments

@coreyshuman
Copy link
Owner

Queued line draw performance in Gecko:
FPS: 7
image

Non-queued line draw performance in Gecko:
FPS: 62
image

Comparison: queued line draw performance in Chrome (V8):
FPS: 237
image

Comparison: non-queued line draw performance in Chrome (V8):
FPS: 150
image

Code

Most time appears to be spent in the 'moveTo()' function call here:

ctx.moveTo(line.x1, line.y1);

Possible solutions

  • Select queue or non-queued based on browser (accurate browser detection becomes a maintenance issue)
  • Troubleshoot/research moveTo() performance in Gecko and work on alternative implementation or submit fix upstream.
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

No branches or pull requests

1 participant