Hello, I wanna make a quantity based mostly sandbox recreation and I’m engaged on a mannequin editor factor that makes use of SDFs, combines them right into a 3D quantity based mostly on various kinds of operations, after which creates a triangle mannequin out of it
proper now the mannequin is simply voxels (with solely the seen faces being generated) however I’d like to maneuver to twin contouring & clean normals as soon as I determine that out
I’m nonetheless at a degree the place both the mesh era compute shader or bringing the info again to the cpu drops the framerate from 112fps to 30 when going from a 32x32x32 to a 64x64x64 quantity.
I’ve put some profiler samples and the difficulty comes largely from that, and never any code I run afterward to transform the triangle array to mesh information (this additionally has an influence however not almost as vital compared).
Right here’s the present model of the compute shader : hatebin
any thought easy methods to enhance efficiency?
1 Like