Lurker News

Comments (72) 25 threads

Earlier comments
Gehinnn3 replies#
Nice ;) How come you use WebGL rather than e.g. SVG?
w56rjrtyu6ru1 reply#
Correct me if I'm wrong, but I think WebGL is the most performant graphics pipeline available in browsers today.

I'm hooked on SVG's promise of semantic graphics, but every time I tried building something with SVG in a browser the performance just wasn't there, especially on low-end devices.

rikschennink1 reply#
You're absolutely right, you either go for CSS 3D Transforms, or WebGL, WebGL being faster still.
aloer1 reply#
What’s your take on 2d canvas? I always see these 2d Toole using webgl and wonder how big of a difference it is.

Filters of course work best in webgl. But the rest?
Also, do you use offscreencanvas in chrome?

Continue this thread — 1 reply

onion2k#
Performance.
rikschennink#
Initially I rendered the image preview with CSS 3D transforms, while super fast on Safari, it turned out this wasn't as performant on Chrome when viewing on a retina display (weird right?). So I switched to WebGL, which sits closer (closest?) to the hardware and therefor yields better results. It's now super fast, it can animate filter transitions at 60FPS.

SVGs currently don't support hardware acceleration, so that's why I went with CSS transforms for other parts of the UI. The only things rendered with SVG at the moment are the markup, the UI icons, and the rotation control.

fareesh1 reply#
Looks good. I clicked crop, dragged the handles, then clicked resize, but it zoomed in and the image went underneath the menu.

Browser: Brave on Ubuntu

rikschennink#
It'll show the actual output size of the image, I'm not a 100% happy with this yet. The fact that you report it here (as a bug) is a good indicator that it needs to be changed.
brailsafe#
Absolutely wonderful UI design. Though I'm not sure if there's any contrast controls etc...
ybahubali20181 reply#
Looks great. Excellent work.
rikschennink#
Thank you :-)

Load more comments