#How does making your model out of a lot of 1x1x1 cubes affect performance?
16 messages · Page 1 of 1 (latest)
Please make sure to read #1029373817119838218 as it may answer your question!
Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.
PS. I'm not talking about performance in blockbench, but performance in minecraft
The result will be 1352 times worse for performance because there is 1352 times more faces to process
Actually 1530 times worse, as that's how much faces even a fully optimized voxel model would minimally still have
Additionally you'd have 6120 extra vertices in the model, which roughly equals to 146KB of data that needs to be send to the GPU every time your model needs to be drawn. (Which happens quite regularly based on the use of such a model)
how would turning 1 cube with 6 faces into 1352 cubes with (potentially) 8112 faces be 1530 times worse 🤔 ?
1 cube = 6 faces, turning each pixel at 16x into it's own cube, would result in one face becoming 256 faces.
For 6 faces that equals 1536, substract the 6 original ones, and you have 1530 faces more than before.
which would be 256 times worse
but that's under the assumption the voxel model is removing unnecessary faces
and if I only use the outermost cubes and properly cull their faces
Using the outermost only, would make culling more innefficient, even increasing the amount of faces to 2708 extra ones.
oh, missed that part
Even without culling, performance cost scales by faces, not cubes, so it would've been 1352*6 times worse 😛
I guess I should stop my usual performance rant here 😅
yeah, but 8112 is 1352 times more faces than 6 faces -> hence why it's 1352 worse
it would be 8112 times worse if it were only 1 face in the beginning
That's actually a pretty good point. In that case a fully optimzied voxelized cube would just be 256 times worse.