Workers for chunk generation !
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user