Hacker News new | ask | show | jobs
by lbebber 2782 days ago
This effect uses both WebGL and canvas 2d. I'd guess that for some reason the canvas 2d isn't using hardware acceleration on those browsers?

Somebody has made a version using WebGL alone[1] (sadly they got the refraction a bit wrong), try it to see if it works well enough (and let me know, I'm curious myself).

[1] https://codepen.io/stefanweck/pen/Vbgeax

1 comments

Interesting. Speed is still about 40% in Safari and 60% FF compared to Chrome with this version. Much better than the 2d-canvas version though and looks pretty fluid.

Would be pretty weird if the osx native browser didn't hardware accelerate while Chrome does it on a MPB, but Apple are often weird like that.