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

Uses all the CPU my single firefox thread can take, on both my home computer and work computer. I couldn't figure out what was wrong at first because it rendered beautifully and would respond enough to eventually start a(n unplayable) game after I mashed 'x' a bunch. It was only once I tried to close the tab that I realized it was being incredibly unresponsive.



To be fair, it's incredibly CPU-heavy. It uses an iterative approach to calculate the forces exerted on the grid, so for each frame it calculates the force exerted on each node a set number of times. (See http://en.wikipedia.org/wiki/Verlet_integration)

However, this shouldn't be so heavy that the Firefox JS engine struggles with it...


Yeah the weird thing is that aside from being unresponsive it seems to run fine. The lines move around and the fabric stretches and waves smoothly. That's on an older i3, and a newer 3.GHz i5. I bet it works properly in chrome. I like Firefox but I always seem to have performance issues with it.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: