@remix_labs/machine-starter 2.3109.0-dev → 2.3113.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.js +16 -1
- package/groovebox_build.js +1 -1
- package/package.json +2 -2
package/common.js
CHANGED
|
@@ -100,6 +100,21 @@ async function StartWASM2(hub, config) {
|
|
|
100
100
|
localFFIfuns["$vm_start"] = ffi_vm_start;
|
|
101
101
|
localFFIkind["$vm_stop"] = vm_kind;
|
|
102
102
|
localFFIfuns["$vm_stop"] = ffi_vm_stop;
|
|
103
|
+
let mixrtCode = config.mixrtCode;
|
|
104
|
+
if (typeof(mixrtCode) == "string" && mixrtCode.startsWith("remix://")) {
|
|
105
|
+
// for the desktop only: precompile the mixrt module to get faster
|
|
106
|
+
// startup times
|
|
107
|
+
if (globalThis.mixrtCodeModule && globalThis.mixrtCodeURL == mixrtCode) {
|
|
108
|
+
console.log("[groovebox-starter] reusing mixrt");
|
|
109
|
+
mixrtCode = globalThis.mixrtCodeModule;
|
|
110
|
+
} else {
|
|
111
|
+
let url = mixrtCode;
|
|
112
|
+
console.log("[groovebox-starter] pre-compiling mixrt");
|
|
113
|
+
mixrtCode = await WebAssembly.compileStreaming(fetch(url));
|
|
114
|
+
globalThis.mixrtCodeURL = url;
|
|
115
|
+
globalThis.mixrtCodeModule = mixrtCode;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
103
118
|
ffiLoops[config.vmID] = setupLocalFFIs(hub, config, localFFIfuns);
|
|
104
119
|
let config_msg =
|
|
105
120
|
{ "_rmx_type": "msg_vm_configure",
|
|
@@ -118,7 +133,7 @@ async function StartWASM2(hub, config) {
|
|
|
118
133
|
"interceptFFI": config.interceptFFI,
|
|
119
134
|
"interceptDynloadFFI": config.interceptDynloadFFI,
|
|
120
135
|
"mixcore": config.mixcore,
|
|
121
|
-
"mixrtCode":
|
|
136
|
+
"mixrtCode": mixrtCode
|
|
122
137
|
// can be: base64-encoded string, Uint8Array, or a URL as string
|
|
123
138
|
// (http, https, data)
|
|
124
139
|
};
|
package/groovebox_build.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var GROOVEBOX_BUILD = "
|
|
1
|
+
var GROOVEBOX_BUILD = "3464";
|
|
2
2
|
export { GROOVEBOX_BUILD }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix_labs/machine-starter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3113.0-dev",
|
|
4
4
|
"description": "start the groove",
|
|
5
5
|
"main": "node.js",
|
|
6
6
|
"browser": "index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"author": "Remixlabs staff",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@remix_labs/hub-client": "2.
|
|
14
|
+
"@remix_labs/hub-client": "2.3113.0-dev",
|
|
15
15
|
"nanoid": "^5.0.2",
|
|
16
16
|
"web-worker": "^1.2.0"
|
|
17
17
|
},
|