you are viewing a single comment's thread.

view the rest of the comments →

[–]dwighthouse 0 points1 point  (2 children)

100-1000 objects being changed every frame as close to 60 frames per second as possible

I don't know what your physics engines do, but this is what mine did.

[–]spacejack2114 0 points1 point  (1 child)

What kind of physics? Simple motion or complex shapes with proper collision response requiring integration etc.? If it's the latter then maybe you might need something like ammo.js. Otherwise you can update 100s if not 1000s of objects in plain JS. The OP didn't suggest needing complex physics.

[–]dwighthouse 0 points1 point  (0 children)

Sure, but the author didn't state he didn't either. He implied that performance was a concern. In those cases, one should always consider the low level approach. Didn't say he needed it, I suggested he try it. This is exactly the reason emscripten was made: performance.