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 -1
View File
@@ -11,7 +11,8 @@ and their builds end up half buried.
- **Never use `Math.random`, `Date`, `performance.now` or anything else that changes between runs.** Use the chunk's
`rng` and noise helpers, which are seeded from the world's seed.
- Don't keep state between chunks. Chunks generate in any order.
- Don't keep state between chunks. Chunks generate in any order, and in several worldgen workers at once, each with its
own copy of the worldgen scripts (and the game generates a few itself).
- Adding or removing a mod's features is safe for chunks that haven't been generated yet, but changes existing worlds'
untouched terrain the next time it loads.