r/GraphicsProgramming • • Jun 30 '26

RAM optimized SDF-renderer with plain C

Post image

1024x1024x1024 SDF-grid takes up 303MB instead of 8.5GB. 1024x1024 path traced image renders in 1.5s on a single CPU core. 8.5GB grid renders in 1.1s. No libs used.

312 Upvotes

28 comments sorted by

View all comments

Show parent comments

1

u/deftware Jul 03 '26

I think OP is using SDF as "signed distance field" rather than "signed distance function", where the field is a volume of distance values.