openbci-archive / OpenBCI_NodeJS

Node.js SDK for the all OpenBCI Biosensor Boards
https://www.npmjs.com/package/openbci
137 stars 52 forks source link

Tracking: Multithreaded/Multiprocess #113

Open andrewjaykeller opened 7 years ago

andrewjaykeller commented 7 years ago

Move CPU heavy serialport processing over to another process or thread. Of course node is supposed to be single thread but with libraries like: https://github.com/audreyt/node-webworker-threads/blob/master/README.md seems possible. This will help to reduce CPU usage solving high heat/power consumption and dropped packets because the CPU couldn't clear the serial buffer fast enough.