Live data from Hacker News

Jelly UI: Soft-body physics for native HTML form controls

jelly-ui.com

141–150 of 209 posts

Re: Jelly UI: Soft-body physics for native HTML form controls

#143
post #71
post #38

Saw the window was a bit laggy so thought I'd delve deeper to figure out what was going on. This lib runs a a RAF animation loop every 8ms across every component on the page that causes the entire document to repaint. The comment above appears of the AI generated sort: // One shared animation frame: step every live component, park when idle. // The delta is capped so a background-tab pause never becomes one giant ste…

> This is the kind of thing usually a human notices and says 'dont do that, that is kind of crazy'. It's not crazy. That is literally what 99.99% of video games do. They repaint everything constantly, only limited by either your vsync rate or hardware.

The state of the web when you want to compare a website to the most intensive thing a pc can do.

Re: Jelly UI: Soft-body physics for native HTML form controls

#144
post #71

Earlier quoted context omitted.

> This is the kind of thing usually a human notices and says 'dont do that, that is kind of crazy'. It's not crazy. That is literally what 99.99% of video games do. They repaint everything constantly, only limited by either your vsync rate or hardware.

The browser and OS does that as well (unless absolute zero updates and you don't even move your pointer around). But many smaht people out there don't know that.

This is just plain false. Retained UIs like the DOM and what your OS uses only ever render when something changes, so the vast majority of the time they sit idle. There's extensive effort throughout the entire stack to do as little work as possible.

For instance, the mouse cursor is composited on the GPU during scanout. That means simply moving your cursor requires zero rendering.

Another example: When typing only the newly typed character and caret are rendered. The rest of your entire screen is reused.

Re: Jelly UI: Soft-body physics for native HTML form controls

#145

This comment is for like three people on HN, but anybody remember when Paul Neave had a website/blog/showcase (c.2007-2010ish?) where the borders of the page had similar jelly effect? That was achieved with Flash back in the day. Neave was a personal hero of mine back then... hope you're well if you're reading this!

I used to "get high" as a kid on the spiral illusion thing he built :)

Re: Jelly UI: Soft-body physics for native HTML form controls

#146

Okay I know this is gonna sound rude but who in the world would want form controls that behave this way?

Most pages aren't meant to be 100% utilitarian. Most are meant to be little bits of art, that faces a user, that the user will enjoy interacting with.

Re: Jelly UI: Soft-body physics for native HTML form controls

#148

This comment is for like three people on HN, but anybody remember when Paul Neave had a website/blog/showcase (c.2007-2010ish?) where the borders of the page had similar jelly effect? That was achieved with Flash back in the day. Neave was a personal hero of mine back then... hope you're well if you're reading this!

Haha, yep, first thing I thought of as well. I still have a offline copy of that exact site saved somewhere.

Re: Jelly UI: Soft-body physics for native HTML form controls

#150
post #71

Earlier quoted context omitted.

> This is the kind of thing usually a human notices and says 'dont do that, that is kind of crazy'. It's not crazy. That is literally what 99.99% of video games do. They repaint everything constantly, only limited by either your vsync rate or hardware.

> Yes my car is running all night while it stands in front of my house, but it's not really a waste of resources or a nuisance because generators do the same thing.

It's mining Bitcoin!
Post reply on HN