- Status Closed
- Percent Complete
- Task Type Feature Request
- Category src → render
-
Assigned To
Cody Jackson - Operating System All
- Severity Low
- Priority Very Low
- Reported Version Development
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Attached to Project: Project::OSiRiON
Opened by Evan Goers - 2011-01-12
Last edited by Stijn Buys - 2012-01-22
Opened by Evan Goers - 2011-01-12
Last edited by Stijn Buys - 2012-01-22
FS#6 - Hardware Workaround Scripts
Despite the renderer being written very well and to the spec, certain hardware has trouble doing functions reported to be supported by the driver. I propose an ini file that the engine reads directly after loading all standard configuration files. This ini file instructs the engine to make specific checks and if they pass, execute a configuration file.
The workaround handling being outside the engine allows future changes in the event that new hardware requires a workaround, without requiring recompiling the engine.
Attached are proposed example files.
Here is a patch for render.cc that loads ini/workarounds.ini and execs a command or commands if the renderer string matches. The format is explained a bit more in workarounds.ini. Dropped including other .cfg files because it would've made a huge mess.
It needs work still: Mega suggested allowing it to only modify r_ variables, and having a variable, r_allowWorkarounds so that people paranoid about their data can disable or enable graphical workarounds at will.
workarounds.ini (0.6 KiB)