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

基于ID2D1Geometry实现形状 #9

Closed
Nomango opened this issue Jun 29, 2018 · 0 comments
Closed

基于ID2D1Geometry实现形状 #9

Nomango opened this issue Jun 29, 2018 · 0 comments
Assignees
Labels
enhancement 改进需求

Comments

@Nomango
Copy link
Member

Nomango commented Jun 29, 2018

目前形状的渲染是 renderTarget->DrawXXX 实现的,资料显示每次调用 DrawXXX 函数都会创建一个新的 ID2D1Geometry 对象,所以这种方式会影响速度。

ID2D1Geometry 对象作为形状的成员对象,优化渲染速度,并重写碰撞判断方法。

@Nomango Nomango added the enhancement 改进需求 label Jun 29, 2018
@Nomango Nomango self-assigned this Jun 29, 2018
@Nomango Nomango mentioned this issue Aug 7, 2018
@Nomango Nomango closed this as completed Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 改进需求
Development

No branches or pull requests

1 participant