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

tilemap: replace canvas to webgl #55

Merged
merged 2 commits into from Jul 21, 2019
Merged

tilemap: replace canvas to webgl #55

merged 2 commits into from Jul 21, 2019

Conversation

macabeus
Copy link
Owner

Replace Canvas to WebGL, in order to optimize and to have a more powerful tools (such as resolution setting and GPU).

Using Canvas, we spend ~1.8s to draw the second vision and ~3.6s to replace the second vision to the first vision.

image

image

Using WebGL, we spend ~1.6s to draw the second vision and ~2.8s to replace the second vision to first vision.

image

image

@macabeus macabeus self-assigned this Jul 20, 2019
@macabeus macabeus changed the title map: replace canvas to webgl tilemap: replace canvas to webgl Jul 20, 2019
@macabeus macabeus merged commit 6ac0619 into master Jul 21, 2019
@macabeus macabeus deleted the feat/webgl branch July 21, 2019 02:52
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

Successfully merging this pull request may close these issues.

None yet

1 participant