Remix.run Logo
msy 4 days ago

Impressive but also impressive in that scrolling down through the examples makes my fully-loaded M4-Max Macbook Pro judder. I hate to imaging the performance of a full UI leveraging this stuff. Apple can do it in the UI because they can optimize the hell out of it.

kubeio 4 days ago | parent | next [-]

Haha, I’m the author of the post.

I planned to fix the performance issues before posting here (since I knew HN would be quick to point that out), but somebody posted it first. You’re absolutely right — it’s pretty slow right now and needs optimization.

And it’s not just the refraction/displacement map: plenty of other parts, like visualisations, aren’t optimized yet either.

keepamovin 4 days ago | parent | next [-]

lol this demo is SO cool. you have NOTHING to be anything but proud and happy of. you did excellently and this UI is the perfect realization of this idea. Well done!

It ran perfectly smoothly with no perf hit in 2020 mba m1. there are no issues with this.

jonahx 4 days ago | parent | prev | next [-]

Performance aside, this is really well done.

rafark 3 days ago | parent | prev [-]

> You’re absolutely right — it’s pretty slow right now and needs optimization.

Man the ptsd that AIs have given us from sentences like this.

kubeio 4 days ago | parent | prev | next [-]

I did a quick performance fix, should be a bit better, at least on Chrome.

(Safari stills seems to be a bit slow to render SVGs)

Anyway, I did not expect this blog post to be on HN, so still things to improve on it.

crent 4 days ago | parent [-]

It's very very smooth for me now. Impressive. Thank you for sharing!

StrangeDoctor 4 days ago | parent | prev | next [-]

Yeah this site does not scroll like butter as it were.

But I don’t think css can leverage the gpu in most (any?) cases. Apple has almost certainly baked something into the silicon to help handle the ui.

CognitiveLens 4 days ago | parent [-]

Most browsers will engage the GPU for compositing layers if they think the layers can be separated - https://www.smashingmagazine.com/2016/12/gpu-animation-doing...

StrangeDoctor 4 days ago | parent [-]

Interesting, thank you!

spicybright 4 days ago | parent | prev | next [-]

Same, very laggy on my machine. The spectacular border effects also didn't work for me.

4 days ago | parent | prev [-]
[deleted]