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

Make canvas2d faster than Webgl #36

Open
CofeeWithRose opened this issue Sep 18, 2023 · 0 comments
Open

Make canvas2d faster than Webgl #36

CofeeWithRose opened this issue Sep 18, 2023 · 0 comments

Comments

@CofeeWithRose
Copy link

CofeeWithRose commented Sep 18, 2023

currrent Path2D just contain the point infomation about shap. when call draw(path2D), the borwser must generate new geometry data according lineWidth and other attribuite in context.
if the path2D includs all the infomation about generate geometry, the geometry data can cache, give the chance to browser optimization the drawcall.

@CofeeWithRose CofeeWithRose changed the title Convertting Path2D to FullState Graphic to Make canvas2d faster than Webgl Make canvas2d faster than Webgl Sep 19, 2023
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