@aethervtt/shard-node 0.1.0 → 0.2.0

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -2
  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 { LogResource } from "@aethervtt/shard-runtime";
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.0",
3
+ "version": "0.2.0",
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.0",
20
- "@aethervtt/shard-core": "0.1.0",
21
- "@aethervtt/shard-gpu": "0.1.0",
22
- "@aethervtt/shard-platform": "0.1.0",
23
- "@aethervtt/shard-platform-node": "0.1.0",
24
- "@aethervtt/shard-procgen": "0.1.0",
25
- "@aethervtt/shard-project": "0.1.0",
26
- "@aethervtt/shard-protocol": "0.1.0",
27
- "@aethervtt/shard-render": "0.1.0",
28
- "@aethervtt/shard-runtime": "0.1.0",
29
- "@aethervtt/shard-scene": "0.1.0",
19
+ "@aethervtt/shard-assets": "0.2.0",
20
+ "@aethervtt/shard-core": "0.2.0",
21
+ "@aethervtt/shard-gpu": "0.2.0",
22
+ "@aethervtt/shard-platform": "0.2.0",
23
+ "@aethervtt/shard-platform-node": "0.2.0",
24
+ "@aethervtt/shard-procgen": "0.2.0",
25
+ "@aethervtt/shard-project": "0.2.0",
26
+ "@aethervtt/shard-protocol": "0.2.0",
27
+ "@aethervtt/shard-render": "0.2.0",
28
+ "@aethervtt/shard-runtime": "0.2.0",
29
+ "@aethervtt/shard-scene": "0.2.0",
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": "8e14c9896f82a3554b156f1ffdd68f2cc3e7d78a"
43
+ "buildSha": "32c22a3944ed23f5d1baa90bf7cc9fae724f5fd8"
44
44
  }
45
45
  }