Open hamidb80 opened 7 months ago
the only thing that I can think that why Orgpad is smooth even with lots of nides is that it caches nodes as images, and updates them when you zoom in or zoom out after some periods of time.
honestly the Pixi example is not faster than Konva in mobile ...
honestly the Pixi example is not faster than Konva in mobile ...
I'm confused maybe this is a problem with the library provides scaling/scrolling?
// find out for one
someCanvas.getContext("2d") // null ? "webgl" : "context2D"
// find out for all
Array.from(document.body.getElementsByTagName("canvas")).map(can => [can, can.getContext("2d")])
How to know if a canvas is a normal canvas or a webgl canvas
orgpad
is 2d canvasgoogle maps
is Webgl
https://github.com/tomby42/orgpad -- older versions of OrgPad
A high-performance, feature-packed library for all your mapping needs. https://openlayers.org/
sigma is the best
This demo shows how to display large graphs with both good performance and high quality. For this, the demo uses WebGL2 rendering on small zoom levels and switches to high quality SVG rendering when the user zoomed-in above a certain threshold.
use custom collision detection library, use pixi-viewport for panning and zooming, it is so damn fast
replace
stars.js
with:man the above code took 2.5 GB of RAM 😮💨