You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code to calculate the kinematics of the system should be placed into a web-worker that's separate from the rendering code. Currently the kinematics are calculated in a separate interval loop
constintervalId=setInterval(calculate(),timeStep)
while the rendering of the particles is done in an animation frame loop
What should happen is the kinematic code should be entirely contained in a web-worker and every 1/60 of a second it should send the updated positions of the mesh to the renderer.
The code to calculate the kinematics of the system should be placed into a web-worker that's separate from the rendering code. Currently the kinematics are calculated in a separate interval loop
while the rendering of the particles is done in an animation frame loop
What should happen is the kinematic code should be entirely contained in a web-worker and every 1/60 of a second it should send the updated positions of the mesh to the renderer.
The text was updated successfully, but these errors were encountered: