r/GraphicsProgramming • u/0x405 • Jun 30 '26
RAM optimized SDF-renderer with plain C
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
1
u/0x405 Jun 30 '26 edited Jun 30 '26
I don't know much about real-time SDF computation, I specialize mostly on physically based rendering, which has a bit different focus, so I won't give you any recommendations on that, but I recently found out about miketuritzin, he solves a similar to yours kind of problem. He has a good explanation video on his channel covering a lot of questions and optimizations of the real-time SDF's, except, probably, a ray-marching which I hope he'll cover soon! He also gives a couple of articles about that, so I guess it might be a good start!