-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Grid matrix setup on browser pixels #183
Comments
That's the limitation of the a* algorithm, its fast but if you throw a lot of nodes at it it can become slow. I suggest instead of using pixel you define areas or zones and feed that as nodes into the algorithm. For example something like this: |
@brean can u pls help me how to divide a 1000 x1000 pixels into zones/areas? |
@YaswanthAkula that highly depends on your scenario and what exactly you want to do. For a general solution you could do something like every 100th pixel and create 10x10 zones or you can create something based on an existing road network (like the guy in the youtube video i posted did). |
Exactly there I got stuck @brean Kindly help me with this. |
Hi,
I am using this library to draw path on HTML canvas.
I am facing performance issue when I create grid matrix with pixel number.
Any idea how I can create grid matrix to overcome this performance hit?
The text was updated successfully, but these errors were encountered: