Selsion / DSPMods

MIT License
10 stars 3 forks source link

DSPOptimizations - 0 vertices with shell causing compute buffer error #3

Closed Selsion closed 2 years ago

Selsion commented 2 years ago

If a non-convex dyson shell is made that doesn't include its barycentre, then at the minimum resolution the shell will have 0 vertices. This causes an error when trying to initialize its compute buffer, since a compute buffer can't be initialized with a size of 0. This shouldn't be fixed by skipping the compute buffer initialization, because then such saves won't be compatible in the vanilla game. This should instead be fixed by adding a dummy vertex to a shell when it otherwise would have no vertices. shell_0_verts_error

Selsion commented 2 years ago

The low resolution shells optimization is now obsolete in DSP v0.9, so it was removed. This bug is no longer an issue.