Skip to content

Commit 1ed0ee3

Browse files
committed
Remove WarmUp
1 parent 51d90cc commit 1ed0ee3

22 files changed

+26
-48
lines changed

wasm/dotnet/benchmark.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,11 @@ class Benchmark {
125125
this.api = await this.dotnet.withModuleConfig({ locateFile: e => e }).withConfig(config).create();
126126
this.exports = await this.api.getAssemblyExports("dotnet.dll");
127127

128-
const hardwareConcurrency = globalThis.navigator?.hardwareConcurrency ?? 1;
129-
const sceneWidth = dotnetFlavor === "aot" ? 320 : 240;
130-
const sceneHeight = dotnetFlavor === "aot" ? 240 : 160;
131-
await this.exports.Interop.WarmUp(sceneWidth, sceneHeight, hardwareConcurrency);
128+
this.hardwareConcurrency = globalThis.navigator?.hardwareConcurrency ?? 1;
129+
this.sceneWidth = dotnetFlavor === "aot" ? 320 : 240;
130+
this.sceneHeight = dotnetFlavor === "aot" ? 240 : 160;
132131
}
133132
async runIteration() {
134-
await this.exports.Interop.RunIteration();
133+
await this.exports.Interop.RunIteration(this.sceneWidth, this.sceneHeight, this.hardwareConcurrency);
135134
}
136135
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)