cosmograph-org / cosmos

GPU-accelerated force graph layout and rendering
Other
823 stars 53 forks source link

Is iOS support still planned / possible? #62

Open acnebs opened 1 year ago

acnebs commented 1 year ago

Hi, thanks for the library – the performance is great. However, I'm trying to find a library I can use to replace our existing graph visualizer react-force-graph and I've noticed that iOS support currently seems broken (the force algo seems to just result in all nodes being clustered in a big soup at the center of the graph). I saw the webkit issue, which seemed to clarify that the lack of support was not a bug and that RGBA16F would need to be used due to lack of EXT_float_blend extension.

I've never really worked with WebGL so after looking at the cosmos code-base I have no idea how possible this is. I have already forked the library to make some usability changes just for myself to better understand how we'd use it, but would definitely like to know if iOS support is a tractable problem. Thanks again for your work on this library!

rokotyan commented 1 year ago

@acnebs As of now we can't do much about it. We rely on the EXT_float_blend WebGL extension in our algorithm and there's no way to make it work without blending.

We'll revisit the problem again when the next iOS version becomes available. Additionally, we hope that WebGPU will allow us to overcome that limitation in the future. However it's only supported by Chrome as of now.