Support OpenGL rendering?
Opened this issue · 5 comments
When I run tyrquake on retroarch (MacOS) it seems to only use software rending rather than opengl rendering, evne though my retroarch video renderer is set to 'gl'. Any option to enable openGL?
Not currently, no, but there are also some good reasons to stick with software rendering, such as the fact that it will work even on devices with no OpenGL support at all (such as a Wii or various OpenDingus handhelds).
But I assume there could be an option which could choose which renderer to use.
It's interesting that this fork has removed OpenGL parts of the codebase from upstream i.e common/vid_sgl.c. So maybe support was not wanted from the outset.
Looks like GL parts were removed early on in the code porting 3cee1ef. But commit message from @inactive123 said removing for now...
The problem with that GL renderer is that it's old dusty code predating even OpenGL 1.1. It's using a subset of GL 1.x because early graphics accelerators didn't even support the full OpenGL featureset. The code would not work on mobile because they use GLES and it'd likely be a problem for GL core context too since you cannot use fixed function code anymore with such a context.
Putting GLES to one side, the upstream version of tyrquake has been making many quality of life improvements to the opengl renderer which makes the opengl work well on windows, mac and linux. See browseable via cgit