Remove plans
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
// the worldgen workers (game/worldgen_worker.ts), started by the host because the game worker has no permissions to
|
||||
// start workers itself: Deno checks a new worker's code against its parent's permissions. each gets one end of a
|
||||
// channel and the game the other, so the game talks to them directly. a worker that crashes is started again and the
|
||||
// game is given its new port. see GENERATION.md
|
||||
// game is given its new port.
|
||||
// what else was tried, in Deno 2.9: a worker without permissions can start one from a data: url, but that one can't
|
||||
// import a single engine file either, so it would have to be the whole worker bundled into one script. and giving the
|
||||
// game read access to the code isn't enough: imports from jsr (like @paulaboks/rng) also want permission to import
|
||||
// from jsr.io, which would let engine access mods in the game import code from the internet
|
||||
const WORKER_URL = new URL("./game/worldgen_worker.ts", import.meta.url);
|
||||
// a worker that keeps crashing isn't started again after this many times, the game generates without it
|
||||
const MAX_RESTARTS = 5;
|
||||
|
||||
Reference in New Issue
Block a user