@aethervtt/shard-node 0.1.0 → 0.2.1
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/dist/index.js +7 -2
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@aethervtt/shard-core";
|
|
12
12
|
import { createNodeGpuContext } from "@aethervtt/shard-gpu/node";
|
|
13
13
|
import { createMemoryStorage } from "@aethervtt/shard-platform";
|
|
14
|
-
import { createNodePlatform } from "@aethervtt/shard-platform-node";
|
|
14
|
+
import { createNodePlatform, loadPerfBudgets } from "@aethervtt/shard-platform-node";
|
|
15
15
|
import { configureProcgenHost, procgenHost } from "@aethervtt/shard-procgen";
|
|
16
16
|
import {
|
|
17
17
|
buildApp,
|
|
@@ -24,7 +24,10 @@ import {
|
|
|
24
24
|
} from "@aethervtt/shard-project";
|
|
25
25
|
import { createProtocolServer } from "@aethervtt/shard-protocol";
|
|
26
26
|
import { OffscreenTarget } from "@aethervtt/shard-render";
|
|
27
|
-
import {
|
|
27
|
+
import {
|
|
28
|
+
LogResource,
|
|
29
|
+
PerfBudgets
|
|
30
|
+
} from "@aethervtt/shard-runtime";
|
|
28
31
|
import { loadScene, whenSceneReady } from "@aethervtt/shard-scene";
|
|
29
32
|
import { createBundler } from "./bundle.js";
|
|
30
33
|
import { prepareGenerators } from "./generators.js";
|
|
@@ -96,6 +99,8 @@ async function openProject(options) {
|
|
|
96
99
|
height: options.height ?? manifest.window.height
|
|
97
100
|
});
|
|
98
101
|
const app = buildApp({ manifest, project, gpu, target, platform });
|
|
102
|
+
const budgets = loadPerfBudgets(root);
|
|
103
|
+
if (budgets) app.insertResource(PerfBudgets, budgets);
|
|
99
104
|
await app.init();
|
|
100
105
|
await loadProjectNavCache(app, platform);
|
|
101
106
|
const stopShaders = await loadProjectShaders(app, platform, { watch: options.watch });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aethervtt/shard-node",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@aethervtt/shard-assets": "0.1
|
|
20
|
-
"@aethervtt/shard-core": "0.1
|
|
21
|
-
"@aethervtt/shard-gpu": "0.1
|
|
22
|
-
"@aethervtt/shard-platform": "0.1
|
|
23
|
-
"@aethervtt/shard-platform-node": "0.1
|
|
24
|
-
"@aethervtt/shard-procgen": "0.1
|
|
25
|
-
"@aethervtt/shard-project": "0.1
|
|
26
|
-
"@aethervtt/shard-protocol": "0.1
|
|
27
|
-
"@aethervtt/shard-render": "0.1
|
|
28
|
-
"@aethervtt/shard-runtime": "0.1
|
|
29
|
-
"@aethervtt/shard-scene": "0.1
|
|
19
|
+
"@aethervtt/shard-assets": "0.2.1",
|
|
20
|
+
"@aethervtt/shard-core": "0.2.1",
|
|
21
|
+
"@aethervtt/shard-gpu": "0.2.1",
|
|
22
|
+
"@aethervtt/shard-platform": "0.2.1",
|
|
23
|
+
"@aethervtt/shard-platform-node": "0.2.1",
|
|
24
|
+
"@aethervtt/shard-procgen": "0.2.1",
|
|
25
|
+
"@aethervtt/shard-project": "0.2.1",
|
|
26
|
+
"@aethervtt/shard-protocol": "0.2.1",
|
|
27
|
+
"@aethervtt/shard-render": "0.2.1",
|
|
28
|
+
"@aethervtt/shard-runtime": "0.2.1",
|
|
29
|
+
"@aethervtt/shard-scene": "0.2.1",
|
|
30
30
|
"esbuild": "^0.28.2",
|
|
31
31
|
"webgpu": "0.6.1"
|
|
32
32
|
},
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
"provenance": true
|
|
41
41
|
},
|
|
42
42
|
"shard": {
|
|
43
|
-
"buildSha": "
|
|
43
|
+
"buildSha": "772eb0d2b8a5fc499105708f4ae92c58788cc9ea"
|
|
44
44
|
}
|
|
45
45
|
}
|