Commit Graph

7 Commits

Author SHA1 Message Date
d681d84416 Handle drag and drop of Data dir
Also some general fixes to the data dir picker button.
2022-03-09 01:35:20 -05:00
5dd061627a Move WorkerPoolContext into WorkerPool.ts 2022-03-04 23:53:36 -05:00
eebae85a65 Implement WorkerPool, use webkitdirectory input
WorkerPool speeds up processing of plugins by using more cores on separate threads. It terminates and recreates a worker after it finishes a task since web assembly seems to slow down a ton when a worker is reused (maybe memory becomes to large / unfragmented, idk).

I switched to the deprecated input tag with webkitdirectory since it is the only way to load a folder under the program files folder. Drag and drop might be another alternative, but I'd rather have a picker.
2022-03-04 23:49:14 -05:00
3a34f48e6c Remove console.logs 2022-03-03 22:11:40 -05:00
20144ae130 Process plugins round-robin in a web worker queue
Speeds it up a lot!
2022-03-03 01:33:36 -05:00
5144f8d6e1 Move worker init to index page 2022-03-02 23:53:20 -05:00
de445627bf Refactor PluginsLoader into separate components 2022-03-02 22:19:26 -05:00