playcanvas / playcanvas-sync

Real-time synchronization of files between PlayCanvas and your local machine
https://playcanvas.com/
MIT License
75 stars 18 forks source link

Watch: consider using chokidar in watcher. #48

Open querielo opened 2 years ago

querielo commented 2 years ago

Right now, playcanvas-sync uses an infinite loop to check state of files. It can cause high CPU utilization especially if we have too many files. There are libraries for this like chokidar.

querielo commented 2 years ago

The problem can be escalated if we need to check file hashes as described here