Increase worker initailization timeout from 5=>20s to prevent worker timeout, add duration logging to some longer operations

This commit is contained in:
evanpelle
2026-01-19 19:26:09 -08:00
parent 9d0ae10912
commit 697a346c86
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -51,6 +51,7 @@ export class FetchGameMapLoader implements GameMapLoader {
}
private async loadBinaryFromUrl(url: string) {
const startTime = performance.now();
const response = await fetch(url);
if (!response.ok) {
@@ -58,6 +59,9 @@ export class FetchGameMapLoader implements GameMapLoader {
}
const data = await response.arrayBuffer();
console.log(
`[MapLoader] ${url}: ${(performance.now() - startTime).toFixed(0)}ms`,
);
return new Uint8Array(data);
}