4 ms·
Will this work with d3, because d3 is pretty slow with a lot of elements and it would be quite nice if we could get gaming performance in the browser.
by my5thaccount 11y ago
Will this work with d3, because d3 is pretty slow with a lot of elements and it would be quite nice if we could get gaming performance in the browser.
- snuxoll 11y agoI don't recall if d3 uses SVG or canvas off the top of my head, I haven't done much more than toy with it. If it uses SVG, then yes, this could speed up d3 greatly.
- aurbano 11y agoIt uses SVG, so it will speed it up a lot. Unfortunately for things like a force layout in a graph, the main bottleneck will be JavaScript calculating the positions.
- pcwalton 11y agoWebRender doesn't accelerate SVG. It's certainly a potential future area to work on, though.
- snuxoll 11y agoYou're right, it doesn't at the moment. But the whole point behind WebRender is vector graphics are much better suited to GPU rendering - there's no reason SVG couldn't be targeted eventually. EDIT: Realizing you are Patrick himself, of course you know this...