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

I did something fairly similar to this here: https://codepen.io/thomcc/pen/vLzyPY (I need to look into why this isn't running at 60fps anymore on my laptop, it certainly used to...)

The big difference is that it prerenders a gradient for each ball (it uses html5 canvas for that, but doing it with webgl is completely doable, although a bit more work), which is used as a distance field.



> I need to look into why this isn't running at 60fps anymore on my laptop, it certainly used to...

Runs at 60fps for me on a Chromebook from 2014. I suspect you're looking at it on macOS, which has had very poor (arguably the poorest of any x86 platform) OpenGL drivers for the last four or five years.


I am, but it certainly was at 60fps on my laptop when I wrote it, which was also a mac.


Agreed, but it does run at 60fps on my 2015 macbook pro running macOS Sierra




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

Search: