Commit Graph

11 Commits

Author SHA1 Message Date
fd7d22e16a Enable processing plugins as soon as there is one available worker 2022-03-19 01:20:24 -04:00
0616a92bbc Allow selecting Skyrim folder, more language tweaks 2022-03-15 22:33:44 -04:00
8c30a7bd92 UI experience tweaks 2022-03-15 19:59:16 -04:00
559b6600ac Wording tweak in DataDirPicker 2022-03-10 01:18:19 -05:00
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