Hema Posted January 29, 2021 Posted January 29, 2021 what i learned about libraries is that, they are made of the main technology but for canvas the main technology is already slow so how are the canvas libraries faster
Ingolme Posted January 29, 2021 Posted January 29, 2021 The libraries are not faster than writing native Javascript, they are just coded in an optimal way. You could try to go through their source code if you want to learn some techniques. A common technique to make canvas appear faster is to draw on a buffer (a hidden canvas) and then use drawImage() to draw the contents of the hidden canvas onto the visible canvas. Without more information on how you are writing code for canvas, I can't tell you how to optimize it. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now