Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Blows my mind that my computer isn't even turning on its fans considering how many shaders are running in this thing.


I think they pause when they scroll out of view?


They’re simple shaders and it’s amazing what a computer can do billions of times per second.


Yeah, I mean come on, we're not rendering something hard and expensive to compute, like a React website that has to list items in a shopping cart.


Personally all the fluid simulation shaders I've written usually makes my fan go off, and I'm counting a few of those here so that's impressive in my eyes.


Yeah. It's impressive to my eyes as well. I was just trying to make a joke about how normal websites need 100% of your CPU to render some text and images, and here's this guy doing multiple fluid simulations on a web page written in custom WebGL and it runs on a potato.


I'm on Ubuntu and Edge (v122.0.2365.59) could barely render the page. Chrome (v122.0.6261.94) worked just fine, though. I don't know enough about browsers and GPUs to debug why that is, but I checked (edge|chrome)://gpu and nothing stood out as appreciably different.

Edit: interestingly, it seems to only be the first animation. If I scroll it out of view the others all seem to render fine.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: