~mil/mepo-tickets#43: 
Automatically detect if hardware rendering not available and use software rendering

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

Status
RESOLVED FIXED
Submitter
~mil
Assigned to
No-one
Submitted
1 year, 7 months ago
Updated
9 months ago
Labels
feature nice-to-have pending-release release_1.2

~mil 1 year, 3 months ago

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.

~mil REPORTED FIXED 9 months ago

Fixed in 1.2.0 release.

Register here or Log in to comment, or comment via email.