3 ms·
No, this is CPU rendering only! Not even SIMD, just straightforward integer (and float) code.
by Pannoniae 1y ago
No, this is CPU rendering only! Not even SIMD, just straightforward integer (and float) code.
- brcmthrowaway 1y agoNow make it fixed point
- avadodin 1y agoFixed point would be hell trying to keep track of the ranges. Maybe Posits or LNSs.
- mvx64 1y agoShout 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 https://kingscrook.itch.io/kings-crook
- lmp88959 1y agoHey that's my project! Thanks for the shout out c:
- SJC_Hacker 1y agoIf its OpenGL why is it CPU only ?
- bitwize 1y agoOpenGL 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.
- SJC_Hacker 1y agoI 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.
- apgwoz 1y agoHaven’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.
- bee_rider 1y agoIt would be kind of neat to have OpenGL running on AVX-512, just for fun…
- fuhsnn 1y agoI believe Mesa's llvmpipe backend can do that to a degree, never tried, though.