|
|
|
|
|
by Hydraulix989
3362 days ago
|
|
Great work! This is really impressive stuff, and it's applaudable that you saw this project through to the very end! I'm actually seeing some hitching in the car demo on my reasonably fast dev machine, particularly when I'm interacting with the bridge (computing contact forces of a bunch of bodies connected with joints is a lot of work):
http://piqnt.com/planck.js/Car Have you looked at perf yet? How does the performance of your rewrite planck.js compare to a compiled emscripten version? Would you ever consider using something like ASM.js or WebAssembly? Physics libraries are definitely one of those performance-critical applications where this kind of stuff actually matters a whole lot. |
|
I have not seen any problem with car example on my own laptop, but I will try it on some more different devices to find the issue.
Regarding performance, because Planck.js code is hand-made and readable it is not difficult to improve it if it is not fast enough with some cases.
asm.js looks promising, I'm going to have a closer look at it.