←back to thread

241 points fschuett | 3 comments | | HN request time: 0s | source
Show context
brcmthrowaway ◴[] No.45663181[source]
Does this support CUDA?
replies(1): >>45663260 #
Pannoniae ◴[] No.45663260[source]
No, this is CPU rendering only! Not even SIMD, just straightforward integer (and float) code.
replies(3): >>45663279 #>>45663867 #>>45664581 #
SJC_Hacker ◴[] No.45663867[source]
If its OpenGL why is it CPU only ?
replies(1): >>45663925 #
1. bitwize ◴[] No.45663925[source]
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.
replies(1): >>45663958 #
2. SJC_Hacker ◴[] No.45663958[source]
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.
replies(1): >>45665004 #
3. apgwoz ◴[] No.45665004[source]
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.