UW-MAGIC-lab / hidden_village

https://practical-fermat-9e0301.netlify.app/
MIT License
1 stars 7 forks source link

Performance Issues #50

Open ctstewart opened 1 year ago

ctstewart commented 1 year ago

The application seems to run very well on M1 Macs. It unfortunately runs very poorly on Windows devices.

Through some testing, the performance seems to be dependent on both hardware and software. On my very powerful Windows machine using Google Chrome, the application loads about 1 motion "frame" per second. In Firefox however, it runs slightly faster, processing a couple of frames per second. Similar behavior occurs on other Windows devices we've tried.

My M1 Mac runs the application very seamlessly in both Safari and Google Chrome.

One possible cause could be that using await along with the call to Holistic to retrieve poseData is blocking the event loop, causing the application to hang. This needs more testing though to see if it is the cause.

If this is what's causing the issue, then ways to better optimize MediaPipe's usage should be investigated.