@downdraft/engine 0.1.2-alpha.5 → 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.
- package/app/src/renderer/bootstrap.ts +1 -1
- package/app/src/renderer/feature-log.ts +1 -1
- package/core/src/input/local-player-manager.ts +2 -2
- package/core/src/util/logger.ts +2 -2
- package/core/src/worker/sim-worker-base.ts +1 -1
- package/dist/.dd-manifest.json +845 -845
- package/dist/app/src/renderer/bootstrap.js +1 -1
- package/dist/app/src/renderer/feature-log.js +1 -1
- package/dist/core/src/input/local-player-manager.js +2 -2
- package/dist/core/src/util/logger.js +2 -2
- package/dist/core/src/worker/sim-worker-base.js +1 -1
- package/dist/libraries/gamepad/src/feed-input.js +1 -1
- package/dist/libraries/gamepad/src/hub.js +2 -2
- package/dist/libraries/gamepad/src/source-sab.js +2 -2
- package/dist/libraries/gamepad/src/sysfs-enrich.js +2 -2
- package/dist/libraries/gpu-kernels/src/kernel.js +1 -1
- package/dist/libraries/gpu-kernels/src/transpile.js +1 -1
- package/dist/libraries/html-ui-kit/src/nav/nav-controller.js +1 -1
- package/dist/libraries/html-ui-kit/src/nav/nav-input.js +2 -2
- package/dist/libraries/networking/src/discovery.js +8 -8
- package/dist/libraries/persistence/src/file-save-store.js +5 -5
- package/dist/libraries/persistence/src/opfs-save-store.js +2 -2
- package/dist/modules/controller-ui/src/index.js +1 -1
- package/dist/modules/devtools/src/blitz/host.js +3 -3
- package/dist/modules/devtools/src/blitz/panels/gpu.js +1 -1
- package/dist/modules/devtools/src/blitz/panels/performance.js +2 -2
- package/dist/modules/html-ui/src/jsx-runtime.js +1 -1
- package/libraries/gamepad/src/feed-input.ts +1 -1
- package/libraries/gamepad/src/hub.ts +2 -2
- package/libraries/gamepad/src/source-sab.ts +2 -2
- package/libraries/gamepad/src/sysfs-enrich.ts +2 -2
- package/libraries/gpu-kernels/src/kernel.ts +2 -2
- package/libraries/gpu-kernels/src/transpile.ts +1 -1
- package/libraries/html-ui-kit/src/nav/nav-controller.ts +1 -1
- package/libraries/html-ui-kit/src/nav/nav-input.ts +2 -2
- package/libraries/networking/src/discovery.ts +8 -8
- package/libraries/persistence/src/file-save-store.ts +5 -5
- package/libraries/persistence/src/opfs-save-store.ts +2 -2
- package/libraries/physics-rapier/src/realm-worker-script.ts +1 -1
- package/modules/controller-ui/src/index.ts +1 -1
- package/modules/devtools/src/blitz/host.ts +3 -3
- package/modules/devtools/src/blitz/panels/gpu.ts +1 -1
- package/modules/devtools/src/blitz/panels/performance.ts +2 -2
- package/modules/html-ui/src/jsx-runtime.ts +1 -1
- package/package.json +2 -2
|
@@ -119,7 +119,7 @@ export class BlitzDevtoolsHost {
|
|
|
119
119
|
new ElementsPanel(ctx),
|
|
120
120
|
new PerformancePanel(ctx),
|
|
121
121
|
new GpuPanel(ctx),
|
|
122
|
-
]) this.panels.set(p.id, p);
|
|
122
|
+
].values()) this.panels.set(p.id, p);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
get visible(): boolean { return this.panel !== null; }
|
|
@@ -298,7 +298,7 @@ export class BlitzDevtoolsHost {
|
|
|
298
298
|
const slots = this.backend.providerSlots();
|
|
299
299
|
let changed = false;
|
|
300
300
|
const seen = new Set<number>();
|
|
301
|
-
for (const { slot, name } of slots) {
|
|
301
|
+
for (const { slot, name } of slots.values()) {
|
|
302
302
|
seen.add(slot);
|
|
303
303
|
if (!this.snapshotPanels.has(slot)) {
|
|
304
304
|
const p = new SnapshotPanel(this.panelCtx, slot, name);
|
|
@@ -307,7 +307,7 @@ export class BlitzDevtoolsHost {
|
|
|
307
307
|
changed = true;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
for (const [slot, p] of this.snapshotPanels) {
|
|
310
|
+
for (const [slot, p] of this.snapshotPanels.entries()) {
|
|
311
311
|
if (!seen.has(slot)) {
|
|
312
312
|
this.snapshotPanels.delete(slot);
|
|
313
313
|
this.panels.delete(p.id);
|
|
@@ -30,7 +30,7 @@ export class GpuPanel implements DtPanel {
|
|
|
30
30
|
const chart = `<div class="snap-section"><h3>Frame times (ms)</h3>${chartHtml(times, { max: Math.max(16.7, ...times), label: "" })}</div>`;
|
|
31
31
|
|
|
32
32
|
const sections: { header: string | null; rows: { k: string; v: string }[] }[] = [];
|
|
33
|
-
for (const e of this.info.entries ?? []) {
|
|
33
|
+
for (const e of (this.info.entries ?? []).values()) {
|
|
34
34
|
if (e.isHeader || !sections.length) {
|
|
35
35
|
sections.push({ header: e.isHeader ? e.key : null, rows: [] });
|
|
36
36
|
if (e.isHeader) continue;
|
|
@@ -47,7 +47,7 @@ export class PerformancePanel implements DtPanel {
|
|
|
47
47
|
let tbl = `<table class="dt"><tr>
|
|
48
48
|
<th>slot</th><th>name</th><th>cpu%</th><th>heap</th>
|
|
49
49
|
<th>gc max µs</th><th>task p95 µs</th></tr>`;
|
|
50
|
-
for (const s of this.slots) {
|
|
50
|
+
for (const s of this.slots.values()) {
|
|
51
51
|
const h = s.history?.[0] ?? {} as MetricsSlot["history"][0];
|
|
52
52
|
tbl += `<tr><td>${s.slotIndex}</td><td>${esc(s.name)}</td>
|
|
53
53
|
<td>${(h.cpuPercent ?? 0).toFixed(1)}</td>
|
|
@@ -77,7 +77,7 @@ export class PerformancePanel implements DtPanel {
|
|
|
77
77
|
onBackendEvent(event: string, data: unknown): void {
|
|
78
78
|
if (event === "metrics") {
|
|
79
79
|
this.slots = (data as MetricsSlot[]) ?? [];
|
|
80
|
-
for (const s of this.slots) {
|
|
80
|
+
for (const s of this.slots.values()) {
|
|
81
81
|
const h = s.history?.[0];
|
|
82
82
|
if (!h) continue;
|
|
83
83
|
let rec = this.history.get(s.slotIndex);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@downdraft/engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/knackstedt/downdraft.git",
|
|
@@ -865,7 +865,7 @@
|
|
|
865
865
|
"zustand": "^5.0.2"
|
|
866
866
|
},
|
|
867
867
|
"peerDependencies": {
|
|
868
|
-
"@downdraft/platform-native": "^0.
|
|
868
|
+
"@downdraft/platform-native": "^0.2.0"
|
|
869
869
|
},
|
|
870
870
|
"peerDependenciesMeta": {
|
|
871
871
|
"@downdraft/platform-native": {
|