[adapters] 增加资源管线的多线程支持

This commit is contained in:
SmallMain
2024-10-21 20:23:37 +08:00
parent 6aec2d7cfa
commit 29427f6bf6
18 changed files with 1772 additions and 60 deletions

View File

@@ -1,3 +1,4 @@
const initWorker = require('./worker_adapter/index.js');
require('adapter-js-path');
__globalAdapter.init();
require('cocos2d-js-path');
@@ -17,4 +18,6 @@ if (cc.sys.platform !== cc.sys.WECHAT_GAME_SUB) {
cc.macro.CLEANUP_IMAGE_CACHE = true;
}
window.boot();
initWorker(() => {
window.boot();
});