3 ms·
I haven't followed this project, and know very little about rendering, but I saw in your updates you ended up moving the voxel generation off the GPU and onto t
by nickpeterson 10y ago
I haven't followed this project, and know very little about rendering, but I saw in your updates you ended up moving the voxel generation off the GPU and onto the CPU. How feasible would rendering on the CPU be for your engine? Is it highly specialized towards using GPU features, or could it be reasonably distributed across multiple traditional CPU cores?
- gavanwoolery 10y agoI debated moving rendering to the CPU at one point. The CPU allows you to use much more creative tricks, but of course lacks the ability to crunch tons of numbers in parallel to the extent that a GPU can. It is possible, but the question is - is it worthwhile? :)
- wingerlang 10y agoDo you have some example?
- gavanwoolery 10y agoOne good example is ray casting. In a GPU there is no temporal locality, each pixel is ideally independently determined. On a GPU you can cast a single ray and flood fill out from there. This is slightly similar to what Ken Silverman did in Voxlap with wave surfing, although IIRC that algorithm only fills along vertical scanlines.