Occasionally a target machine won't have the required resources for hardware rendering which is the default. In this case currently users can opt out of hardware rendering and use software rendering by using the -sw
flag.
It would be nice if we could automatically detect this failure and switch to -sw
without any user intervention.
This failure of HW rendering was mentioned in #42
From: https://nullprogram.com/blog/2023/01/08/
Given a zero for renderer flags, SDL will first attempt to create an accelerated renderer. Failing that, it will then attempt to create a software renderer. A software renderer fallback is exactly the behavior you want! After all, this fallback is one of the primary features of the SDL renderer API. This is so straightforward there are no caveats.