Workers for chunk generation !

This commit is contained in:
2026-10-11 01:15:14 -03:00
parent 3d2b235f64
commit cd3b39c3d7
24 changed files with 1119 additions and 91 deletions
+2
View File
@@ -11,6 +11,8 @@ try {
dist_dir: Deno.env.get("DIST_DIR") ?? "dist",
world_dir: Deno.env.get("WORLD_DIR") ?? "world",
seed: Deno.env.get("SEED"),
// leave it out for a few, 0 to generate on the game's thread
worldgen_workers: Deno.env.get("WORLDGEN_WORKERS") ? Number(Deno.env.get("WORLDGEN_WORKERS")) : undefined,
on_fatal(message) {
console.error(message);
Deno.exit(1);