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

Mesh size limits #484

Open kpreid opened 3 months ago

kpreid commented 3 months ago

fuzz_mesh is hitting the fuzzer-imposed memory limit. We should place explicit limits on the maximum complexity of a mesh so that it not only doesn't hit the fuzzer limit, but is also reasonable for actual rendering.

kpreid commented 2 months ago

The fuzzer out-of-memory turned out to be not from mesh generation, but from generating a huge LightStorage::propagation_table. I fixed that by constraining the value in 217bd70ebc35931ece954910f92ad2169113559f. However, mesh size limits are still desirable.