Skip to content
This repository has been archived by the owner on Jan 30, 2022. It is now read-only.

为什么不用canvas写呢? #10

Closed
leeseean opened this issue Aug 3, 2018 · 1 comment
Closed

为什么不用canvas写呢? #10

leeseean opened this issue Aug 3, 2018 · 1 comment

Comments

@leeseean
Copy link

leeseean commented Aug 3, 2018

用dom性能不好

@feichao93
Copy link
Owner

最主要的原因是我对 react + svg 更熟悉,所以就选择了这个技术栈。然后,游戏里面用的都是矢量图,用 canvas 去绘制矢量图(即总是绘制矩形或多边形,而不直接绘制位图)的性能也不是很好,主要还是看渲染优化。

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

No branches or pull requests

2 participants