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

CanvasRenderingContext2D 性能问题 #2459

Open
deyihu opened this issue Nov 6, 2024 · 0 comments
Open

CanvasRenderingContext2D 性能问题 #2459

deyihu opened this issue Nov 6, 2024 · 0 comments

Comments

@deyihu
Copy link
Collaborator

deyihu commented Nov 6, 2024

maptalks's version and what browser you use?

Issue description

原生的CanvasRenderingContext2D的所有属性都进行了 get set处理了,导致CanvasRenderingContext2D的属性读取和写入都会有性能损失

%E@XC%Q0}Q8NVYL{E(HJ8PG

这个应该可以优化,通过手动mock一个虚拟CanvasRenderingContext2D,应该可以提高CanvasRenderingContext2D的性能

Please provide a reproduction URL (on any jsfiddle like site)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant