pioneers / pimulator-js

Portable robotics simulator for the Pioneers in Engineering robotics kit (JavaScript edition)
3 stars 1 forks source link

Run Robot.run() in parallel subworkers #147

Closed charleshong3 closed 2 years ago

charleshong3 commented 2 years ago

When Robot.run() is called, main worker passes full student code to a subworker, which executes the code, then calls the function specified by Robot.run(). May hurt performance slightly, since each subworker needs to load Pyodide whenever a simulation terminates. Currently, spawns 3 subworkers (so up to 3 functions can by run in parallel with Robot.run().

IMPORTANT: Need to add the following response headers to the page for SharedArrayBuffer to work:

render[bot] commented 2 years ago

Your Render PR Server URL is https://pimulator-staging-pr-147.onrender.com.

Follow its progress at https://dashboard.render.com/static/srv-c5ut69t0malffvtkqhug.