tyrquake icon indicating copy to clipboard operation
tyrquake copied to clipboard

Support OpenGL rendering?

Open palmerj opened this issue 3 years ago • 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?

palmerj avatar Aug 09 '22 08:08 palmerj

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).

hizzlekizzle avatar Aug 09 '22 13:08 hizzlekizzle

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.

palmerj avatar Aug 09 '22 20:08 palmerj

Looks like GL parts were removed early on in the code porting https://github.com/libretro/tyrquake/commit/3cee1ef05230fff38d95f16fb09912b4e6af7c00. But commit message from @inactive123 said removing for now...

palmerj avatar Aug 09 '22 21:08 palmerj

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.

LibretroAdmin avatar Aug 10 '22 15:08 LibretroAdmin

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

palmerj avatar Aug 10 '22 21:08 palmerj