Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does this support CUDA?


No, this is CPU rendering only! Not even SIMD, just straightforward integer (and float) code.


It would be kind of neat to have OpenGL running on AVX-512, just for fun…


I believe Mesa's llvmpipe backend can do that to a degree, never tried, though.


Now make it fixed point


Shout out to King's Crook [1], a cool project using a custom C software renderer only using integers

[1] https://kingscrook.itch.io/kings-crook


Hey that's my project! Thanks for the shout out c:


Fixed point would be hell trying to keep track of the ranges. Maybe Posits or LNSs.


If its OpenGL why is it CPU only ?


OpenGL is an API. Software renderers for it—like the one that originally came with Windows NT, or even early versions of Mesa—have been out for a long time.


I haven't messed with it for a while, but last I checked it really wasn't that much code to make it run on the GPU. Maybe an extra 100 lines or so. Although you couldn't use windowed mode, had to be fullscreen.


Haven’t messed with what?

This is an implementation of the OpenGL API interface. It is not OpenGL. It does not support GPU acceleration. It does math with floating point on the CPU. It then draws points and lines on a 2D surface provided by raylib.

Could this be adapted to use SIMD, or a GPU? Sure. That is not what this is today.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: