kpreid / all-is-cubes

Yet another block/voxel game; in this one the blocks are made out of blocks. Runs in browsers on WebGL+WebAssembly.
https://kpreid.dreamwidth.org/tag/all+is+cubes
Apache License 2.0
147 stars 8 forks source link

Deterministic chunk mesh ordering #485

Closed kpreid closed 3 months ago

kpreid commented 3 months ago

I added parallel chunk updates without thinking very hard about the consequences, and now the glTF export fails nondeterministically, because ordering in the file is determined by ordering of the parallel operations.

Possible solutions:

kpreid commented 3 months ago

Fixed by sorting in 590de4d3b4bbedf5552220d519c461f11424c450.